Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <[email protected]>
  • Loading branch information
nhtruong committed Aug 21, 2024
1 parent 0a049ca commit 79cce1e
Showing 1 changed file with 52 additions and 6 deletions.
58 changes: 52 additions & 6 deletions json_schemas/spec_namespace.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ $defs:
additionalProperties: false

schema:
$comment: https://spec.openapis.org/oas/v3.1.0#schema-object
$dynamicAnchor: meta
type:
- object
- boolean
$ref: https://json-schema.org/draft/2020-12/schema

versioning-extensions:
type: object
Expand Down Expand Up @@ -164,4 +160,54 @@ $defs:
pattern: '^[1-5](?:[0-9]{2}|XX)$'
additionalProperties:
$ref: '#/$defs/reference'
minProperties: 1
minProperties: 1

components:
properties:
parameters:
type: object
additionalProperties:
$ref: '#/$defs/parameter'
responses:
type: object
additionalProperties:
$ref: '#/$defs/response'
requestBodies:
type: object
additionalProperties:
$ref: '#/$defs/request-body'

parameter:
type: object
properties:
name:
type: string
in:
enum:
- query
- path
description:
type: string
required:
default: false
type: boolean
deprecated:
default: false
type: boolean
schema:
$ref: '#/$defs/schema'
x-global:
description: Denotes that the parameter is a global parameter that is included in every operation
type: boolean
default: false
x-default:
description: Contains the default value of a parameter.
This is often used to override the default value specified in the schema,
or to avoid accidentally changing the default value when updating a shared schema.
type: [string, number, boolean]
required:
- name
- in
- schema
- description
additionalProperties: false

0 comments on commit 79cce1e

Please sign in to comment.