graph LR
Yaml --> Spec --> Output[File]
type File struct {
content []byte
path string
}
graph TD
Spec --> Path
Spec --> Components
Components --> S1[Schemas] --> S1
Path --> PathItem --> Operation
Operation --> Parameters --> S3[Schemas] --> S3
Operation --> Responses
Operation --> RequestBody
RequestBody --> MediaType
Responses[Responses Container] --> Response[Response $ref]
Response --> RC[Content] --> MediaType --> S2[Schemas $ref] --> S2
graph LR
1[1. Unmarshal]
2[2. ReadRefs] --- TT[Traverse Tree]
3[3. Render] --- TT[Traverse Tree]
Spec is a Directed Acyclic Graph of composed nodes.
graph TD
Can[main]
Can --> Render
Can --> Sanitize
Can --> Server
Can --> Model
Can --> Route
Can --> OpenAPI