package
1.6.0
Repository: https://github.com/alexjomin/openapi-parser.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

GetUser returns a user corresponding to specified id @openapi:path /pets: get: description: "Returns all pets from the system that the user has access to" operationId: GetUser tags: - pet responses: "200": description: "A list of pets." content: application/json: schema: type: "array" items: $ref: "#/components/schemas/Pet" "302": description: "Trip Signals Redirection" headers: Location: description: The url to the signal API schema: type: string parameters: - in: path name: deviceId schema: type: integer enum: [3, 4] required: true description: Numeric ID of the user to get security: - petstore_auth: - write:pets - read:pets servers: - url: "https://{environment}.hello.com" description: "what up" variables: environment: default: api # Production server enum: - api # Production server - api.dev # Development server - api.staging # Staging server externalDocs: description: External documentation url: "https://{environment}-docs.hello.com".
PostFoo returns a user corresponding to specified id @openapi:path /pets: post: description: "Returns all pets from the system that the user has access to" requestBody: description: Pet to add to the store required: true content: application/json: schema: $ref: "#/components/schemas/Pet" responses: "201": description: "Post a new pet" content: application/json: schema: type: "array" items: $ref: "#/components/schemas/Pet".

# Structs

AnonymousArray struct @openapi:schema.
Dog struct @openapi:schema.
Foo struct @openapi:schema.
Foo2 struct @openapi:schema:EditableFoo.
Pet struct @openapi:schema.

# Type aliases

MapStringString type @openapi:schema.
Signals struct @openapi:schema.
Test struct @openapi:schema.
WeirdInt type @openapi:schema @openapi:example 42.