MCPcopy Index your code
hub / github.com/rilldata/rill / ParseJSONParameters

Function ParseJSONParameters

runtime/pkg/openapiutil/openapiutil.go:13–20  ·  view source on GitHub ↗

ParseJSONParameters parses a JSON string representing OpenAPI parameters.

(jsonData string)

Source from the content-addressed store, hash-verified

11
12// ParseJSONParameters parses a JSON string representing OpenAPI parameters.
13func ParseJSONParameters(jsonData string) (openapi3.Parameters, error) {
14 var parameters openapi3.Parameters
15 err := json.Unmarshal([]byte(jsonData), &parameters)
16 if err != nil {
17 return nil, err
18 }
19 return parameters, nil
20}
21
22// ParseJSONSchema parses a JSON schema into an OpenAPI schema.
23//

Callers 2

parseAPIMethod · 0.92
generatePathItemSpecMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected