package
0.0.0-20240820205141-dc8c30c29a5b
Repository: https://github.com/akitasoftware/akita-libs.git
Documentation: pkg.go.dev

# README

Package spec_util provides utilities for working with our generic API spec format.

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
Returns true if the witness represents traffic from the CLI to our backend.
No description provided by the author
No description provided by the author
Given 2 DataTemplates that may contain references to Data in the common prefix, return whether the 2 DataTemplates are equivalent.
Extracts a constant value from the given template.
Converts {"a": [1, 2], "b": [3]} to [{"a": 1, "b": 3}, {"a": 2, "b": 3}] Passing in a nil returns [nil].
GetDataRef resolves a reference to the value being referenced.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Extract the response code from the first response (meaningful for witnesses, which contain only at most one response.).
Extract responses returned under a successful status code.
Check each non-map struct in method, and convert structs to maps if StructShouldBeMap is true.
Check each non-map struct in model, and convert structs to maps if StructShouldBeMap is true.
Given an OneOfInstantiator, this function feeds all oneof option specs to the factory and returns the "best" output.
No description provided by the author
No description provided by the author
No description provided by the author
Merges DataMeta from an oneof option with that of its containing Data object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Propagates constants within prefix that are referred to by references in t.
Three maps in the IR use hashes of the values as keys (i.e.
Heuristically determines whether the given pb.Struct (assumed to not represent a map) should be a map.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

Indicates that strings should be interpreted as numbers or boolean values wherever possible.
Indicates that strings should remain strings.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A "view" into RefMap that keeps track of the prefix MethodTemplates in order to avoid returning references that are not useful.

# Interfaces

No description provided by the author
Interface for values that our Primitive protobuf can represent.

# Type aliases

Identifies the type of a protobuf Data message.
No description provided by the author
A function that creates an instantiated Data from a Data spec.
A read-only map that stores references to each method's argument and response values.