Skip to content

Commit

Permalink
feat(spec): JSON Schema 2020-12 definition for Arazzo descriptions
Browse files Browse the repository at this point in the history
closes #176
  • Loading branch information
jeremyfiel committed Jul 30, 2024
1 parent cffe02a commit 1411f86
Show file tree
Hide file tree
Showing 3 changed files with 564 additions and 0 deletions.
21 changes: 21 additions & 0 deletions schemas/v1.0/dialect/base.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
$id: https://spec.openapis.org/arazzo/1.0/dialect/base
$schema: https://json-schema.org/draft/2020-12/schema
title: Arazzo 1.0 Schema Object Dialect
description: |-
A JSON Schema dialect describing schemas found in
OpenAPI Initiative Arazzo documents
$dynamicAnchor: meta

$vocabulary:
https://json-schema.org/draft/2020-12/vocab/core: true
https://json-schema.org/draft/2020-12/vocab/applicator: true
https://json-schema.org/draft/2020-12/vocab/unevaluated: true
https://json-schema.org/draft/2020-12/vocab/validation: true
https://json-schema.org/draft/2020-12/vocab/meta-data: true
https://json-schema.org/draft/2020-12/vocab/format-annotation: true
https://json-schema.org/draft/2020-12/vocab/content: true
https://spec.openapis.org/oas/3.1/vocab/base: false

allOf:
- $ref: https://json-schema.org/draft/2020-12/schema
17 changes: 17 additions & 0 deletions schemas/v1.0/schema-base.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$id: 'https://spec.openapis.org/arazzo/1.0/schema-base/2024-08-01'
$schema: 'https://json-schema.org/draft/2020-12/schema'
description: |-
The description of OpenAPI Initiative Arazzo v1.0.0 documents using the
Arazzo JSON Schema dialect, as defined by https://spec.openapis.org/arazzo/v1.0.0
$ref: 'https://spec.openapis.org/arazzo/1.0/schema/2024-08-01'

type: object
properties:
jsonSchemaDialect:
$ref: '#/$defs/dialect'
unevaluatedProperties: false

$defs:
dialect:
const: 'https://spec.openapis.org/arazzo/1.0/dialect/base'
Loading

0 comments on commit 1411f86

Please sign in to comment.