openapi
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| openapi [2025/02/04 16:35] – ron | openapi [2025/04/13 16:23] (current) – removed ron | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== OpenAPI document structures ====== | ||
| - | ===== Sources ===== | ||
| - | * https:// | ||
| - | * https:// | ||
| - | |||
| - | ===== Structure by Version ===== | ||
| - | surprising how much the structure can change between versions; here's a handful of versions to show that. note the structure is the same for JSON and YAML versions. | ||
| - | |||
| - | ==== 3.0.1 ==== | ||
| - | * schemas : Map[string, Schema Object | Reference Object] | ||
| - | * responses : | ||
| - | * parameters : | ||
| - | * examples : Map[string, Example Object | Reference Object] | ||
| - | * requestBodies : | ||
| - | * headers : Map[string, Header Object | Reference Object] | ||
| - | * securitySchemes : | ||
| - | * links : Map[string, Link Object | Reference Object] | ||
| - | * callbacks : | ||
| - | |||
| - | ==== 3.0.3 ==== | ||
| - | https:// | ||
| - | * openapi : string | ||
| - | * info : Info | ||
| - | * title : string | ||
| - | * description : | ||
| - | * termsOfService : | ||
| - | * contact : Contact | ||
| - | * license : License | ||
| - | * version : string | ||
| - | * servers : [Server] | ||
| - | * url : string | ||
| - | * description : | ||
| - | * variables : | ||
| - | * paths : Paths | ||
| - | * $ref : string | ||
| - | * summary : string | ||
| - | * description : | ||
| - | * get : Operation | ||
| - | * put : Operation | ||
| - | * post : Operation | ||
| - | * delete : Operation | ||
| - | * options : Operation | ||
| - | * head : Operation | ||
| - | * patch : Operation | ||
| - | * trace : Operation | ||
| - | * servers : [Server] | ||
| - | * parameters : | ||
| - | * components : | ||
| - | * schemas : Map[string, Schema|Reference] | ||
| - | * responses : | ||
| - | * parameters : | ||
| - | * examples : Map[string, Example|Reference] | ||
| - | * requestBodies : | ||
| - | * headers : Map[string, Header|Reference] | ||
| - | * securitySchemes : | ||
| - | * links : Map[string, Link|Reference] | ||
| - | * callbacks : | ||
| - | * security : [Security Requirement] | ||
| - | * < | ||
| - | * tags : [Tag] | ||
| - | * name : string | ||
| - | * description : | ||
| - | * externalDocs : | ||
| - | * externalDocs: | ||
| - | * description : | ||
| - | * url : string | ||
| - | |||
| - | ==== 3.0.4 ==== | ||
| - | * same as 3.0.3! | ||
| - | |||
| - | ==== 3.1.0 ==== | ||
| - | * openapi : string | ||
| - | * info : Info Object | ||
| - | * jsonSchemaDialect : | ||
| - | * servers : [Server Object] | ||
| - | * paths : Paths Object | ||
| - | * webhooks : Map[string, Path Item Object | Reference Object] ] | ||
| - | * components : | ||
| - | * security : [Security Requirement Object] | ||
| - | * tags : [Tag Object] | ||
| - | * externalDocs : | ||
| - | |||
| - | ==== 3.1.1 ==== | ||
| - | * same as 3.1.0 (at least the top-level structure is the same) | ||
| - | |||
| - | ====== Gotchas ====== | ||
| - | '' | ||
| - | e.g., instead of | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | use | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | |||
| - | otherwise the description will be lost because according to https:// | ||
| - | > Any sibling elements of a '' | ||
openapi.1738686919.txt.gz · Last modified: 2025/02/04 16:35 by ron
