-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.go
More file actions
78 lines (52 loc) · 2.21 KB
/
openapi.go
File metadata and controls
78 lines (52 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package forge
import "github.com/xraph/forge/internal/shared"
// OpenAPIConfig configures OpenAPI 3.1.0 generation.
type OpenAPIConfig = shared.OpenAPIConfig
// OpenAPIServer represents a server in the OpenAPI spec.
type OpenAPIServer = shared.OpenAPIServer
// SecurityScheme defines a security scheme.
type SecurityScheme = shared.SecurityScheme
// OAuthFlows defines OAuth 2.0 flows.
type OAuthFlows = shared.OAuthFlows
// OAuthFlow defines a single OAuth 2.0 flow.
type OAuthFlow = shared.OAuthFlow
// OpenAPITag represents a tag in the OpenAPI spec.
type OpenAPITag = shared.OpenAPITag
// ExternalDocs points to external documentation.
type ExternalDocs = shared.ExternalDocs
// Contact represents contact information.
type Contact = shared.Contact
// License represents license information.
type License = shared.License
// OpenAPISpec represents the complete OpenAPI 3.1.0 specification.
type OpenAPISpec = shared.OpenAPISpec
// Info provides metadata about the API.
type Info = shared.Info
// PathItem describes operations available on a single path.
type PathItem = shared.PathItem
// Operation describes a single API operation on a path.
type Operation = shared.Operation
// Parameter describes a single operation parameter.
type Parameter = shared.Parameter
// RequestBody describes a single request body.
type RequestBody = shared.RequestBody
// Response describes a single response from an API operation.
type Response = shared.Response
// MediaType provides schema and examples for a media type.
type MediaType = shared.MediaType
// Schema represents a JSON Schema (OpenAPI 3.1.0 uses JSON Schema 2020-12).
type Schema = shared.Schema
// Discriminator supports polymorphism.
type Discriminator = shared.Discriminator
// Example provides an example value.
type Example = shared.Example
// Header describes a single header parameter.
type Header = shared.Header
// Link represents a possible design-time link for a response.
type Link = shared.Link
// Encoding defines encoding for a property.
type Encoding = shared.Encoding
// Components holds reusable objects for the API spec.
type Components = shared.Components
// SecurityRequirement lists required security schemes.
type SecurityRequirement = shared.SecurityRequirement