Created
September 1, 2022 13:35
-
-
Save joeydebreuk/0375b672cbf08a31118b2299bfbb99f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
components: { | |
schemas: { | |
HALLink: { | |
type: 'object', | |
properties: { | |
api: { type: 'string', example: 'https://egeniq.com/page' }, | |
web: { type: 'string', example: 'https://egeniq.com/page' } | |
}, | |
required: [ 'api', 'web' ] | |
}, | |
InternalTextLink: { | |
type: 'object', | |
properties: { | |
type: { type: 'string', enum: [ 'text-link' ] }, | |
text: { type: 'string' }, | |
link: { | |
type: 'object', | |
properties: { | |
api: { type: 'string', example: 'https://egeniq.com/page' }, | |
web: { type: 'string', example: 'https://egeniq.com/page' } | |
}, | |
required: [ 'api', 'web' ] | |
} | |
}, | |
required: [ 'type', 'text', 'link' ] | |
}, | |
LoadMore: { | |
type: 'object', | |
properties: { | |
type: { type: 'string', enum: [ 'load-more' ] }, | |
link: { | |
type: 'object', | |
properties: { | |
api: { type: 'string', example: 'https://egeniq.com/page' }, | |
web: { type: 'string', example: 'https://egeniq.com/page' } | |
}, | |
required: [ 'api', 'web' ] | |
} | |
}, | |
required: [ 'type', 'link' ] | |
} | |
}, | |
parameters: {} | |
} | |
} | |
{ | |
openapi: '3.0.0', | |
info: { version: '1.0.0', title: 'My API', description: 'This is the API' }, | |
servers: [ { url: 'v1' } ], | |
components: { | |
schemas: { | |
HALLink: { '$ref': '#/components/schemas/HALLink' }, | |
InternalTextLink: { '$ref': '#/components/schemas/InternalTextLink' }, | |
LoadMore: { '$ref': '#/components/schemas/LoadMore' } | |
}, | |
parameters: {} | |
}, | |
paths: {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment