Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
e9eef10
Initialize src/oas.md from 3.1.1.md
handrews Nov 10, 2024
76409f4
Initialize schemas from v3.1
handrews Nov 10, 2024
67b94d9
Start next patch - bump version to 3.1.2
handrews Oct 24, 2024
f39b788
Validate src/oas.md
ralfhandl Nov 13, 2024
866e92f
Merge pull request #4196 from ralfhandl/v3.1-validate-oas.md
handrews Nov 13, 2024
4ae387f
Use dev schema for schema tests
ralfhandl Nov 13, 2024
b5d5809
Validate src/oas.md
ralfhandl Nov 13, 2024
95ee947
Merge pull request #4199 from ralfhandl/dev-validate-oas.md
lornajane Nov 14, 2024
165a5a4
Merge pull request #4198 from ralfhandl/dev-schema-tests
handrews Nov 21, 2024
b7f68a9
Merge remote-tracking branch 'upstream/main' into dev-update-from-main
ralfhandl Nov 21, 2024
98725de
Merge pull request #4216 from ralfhandl/dev-update-from-main
handrews Nov 21, 2024
a9643e1
Update schema.yaml in src
ralfhandl Nov 21, 2024
77c76f8
Merge pull request #4218 from ralfhandl/dev-update-src-schema
handrews Nov 21, 2024
d48ff11
Merge branch 'dev' into v3.1-dev-update-from-dev
ralfhandl Nov 21, 2024
5a0a0e8
Merge pull request #4219 from ralfhandl/v3.1-dev-update-from-dev
handrews Nov 21, 2024
3d83a95
Build HTML from src/oas.md
ralfhandl Dec 16, 2024
21b5bcf
Editorial change: Link Object points to Operation Object
char0n Dec 17, 2024
c15db13
Merge pull request #4260 from char0n/char0n/link-operation
ralfhandl Dec 18, 2024
fe5b234
Editorial change: Include Header Object into 'Working With Examples' …
char0n Dec 18, 2024
7cd34d2
Editorial change: fix typo in Link Object description
char0n Dec 18, 2024
1b65003
Update src/oas.md
char0n Dec 18, 2024
8cc59b6
Update src/oas.md
char0n Dec 18, 2024
150e125
Update src/oas.md
char0n Dec 18, 2024
377e124
Update src/oas.md
char0n Dec 18, 2024
6eb487b
Editorial change: add Header Object to Generating and Validating URIs…
char0n Dec 18, 2024
f896bb7
Update src/oas.md
char0n Dec 18, 2024
2dcd87d
Merge pull request #4266 from char0n/char0n/refereced-typo
ralfhandl Dec 19, 2024
8598f2f
Merge pull request #4267 from char0n/char0n/generating-and-validating…
ralfhandl Dec 19, 2024
4e4a292
Merge pull request #4265 from char0n/char0n/add-header-into-working-w…
handrews Dec 19, 2024
a3425f2
builld into deploy-preview
ralfhandl Dec 19, 2024
e738e4a
Introduce constraints for Server Object url fixed field
char0n Dec 19, 2024
8b91379
Update src/oas.md
char0n Dec 20, 2024
ccf329f
Update src/oas.md
char0n Dec 20, 2024
984ee11
Merge pull request #4271 from OAI/main
ralfhandl Dec 21, 2024
0b187b6
Temp files in deploy-preview
ralfhandl Dec 23, 2024
b9c7b91
Tempfile in folder next to js folder
ralfhandl Dec 23, 2024
4fc2fdb
Merge pull request #4272 from swaggerexpert/char0n/server-url-constra…
ralfhandl Jan 3, 2025
1e0fd70
Editorial change: fix anchor to Components.securitySchemes
char0n Dec 27, 2024
126d46a
Merge remote-tracking branch 'upstream/dev' into dev-build-src
ralfhandl Jan 8, 2025
dbba0ba
Fix copy-paste "format: binary" error
handrews Jan 9, 2025
f48940c
Typo
ralfhandl Jan 10, 2025
0178e80
Merge pull request #4282 from swaggerexpert/char0n/fix-components-sec…
ralfhandl Jan 10, 2025
9291879
Merge pull request #4294 from handrews/copy-paste
ralfhandl Jan 10, 2025
8a2bb17
Preview and lint spec changes
ralfhandl Jan 15, 2025
e8a0d07
Merge pull request #4254 from ralfhandl/dev-build-src
handrews Jan 15, 2025
5b0a31a
Feedback from mkistler about contentEncoding
handrews Jan 15, 2025
628e971
Apply suggestions from code review
ralfhandl Jan 16, 2025
a922855
Merge pull request #4301 from handrews/copy-paste-2
ralfhandl Jan 17, 2025
cde67e1
validate markdown in build-src
ralfhandl Jan 18, 2025
bf9155d
Merge pull request #4311 from ralfhandl/dev-validate-markdown-in-buil…
ralfhandl Jan 22, 2025
39c3571
Adjust uri to uri-reference for security schema fixed fields
markrzen Feb 4, 2025
8a686f6
as decided in TDC call on 2025-01-23
ralfhandl Feb 5, 2025
17ab8d6
Update CONTRIBUTING.md
ralfhandl Feb 5, 2025
78320b6
New script format-markdown
ralfhandl Feb 6, 2025
5d505db
Update CONTRIBUTING.md
ralfhandl Feb 6, 2025
b7163c1
Reactor all but xml.namespace from uri to uri-reference
markrzen Feb 6, 2025
c2c9aaf
Update CONTRIBUTING.md
ralfhandl Feb 6, 2025
97e7b3d
Update CONTRIBUTING.md
ralfhandl Feb 7, 2025
328d6a3
Merge remote-tracking branch 'upstream/main' into dev-update-from-main
ralfhandl Feb 10, 2025
d22d504
Merge pull request #4328 from markrzen/patch-2
ralfhandl Feb 13, 2025
0980f61
Merge pull request #4344 from ralfhandl/dev-update-from-main
ralfhandl Feb 13, 2025
4dc85ae
Update src schema with changes from #4328
ralfhandl Feb 13, 2025
cefa986
Remove obsolete schemas folder
ralfhandl Feb 13, 2025
70ae381
Adjust README.md
ralfhandl Feb 13, 2025
d6d0fe7
Update schema-publish.yaml
ralfhandl Feb 13, 2025
b54b525
No loop, just work on src/schemas/validation
ralfhandl Feb 13, 2025
9d4f648
Update schema-publish.yaml
ralfhandl Feb 13, 2025
c43615c
npm script for building schemas locally
ralfhandl Feb 14, 2025
183ac8b
Run only on changes to inputs and scripts
ralfhandl Feb 14, 2025
bd302e3
Update schema-publish.yaml
ralfhandl Feb 14, 2025
494222b
Use branch name
ralfhandl Feb 14, 2025
ed39e4a
Merge pull request #4331 from ralfhandl/v3.1-field-names-and-values-i…
ralfhandl Feb 16, 2025
4600360
Merge pull request #4336 from ralfhandl/dev-format-src-oas.md
ralfhandl Feb 17, 2025
0cb336b
Editorial change: fix typo in runtime expression CHAR non-terminal
char0n Feb 17, 2025
1919c0b
build-src uses build.sh, remove build-src.sh
ralfhandl Feb 18, 2025
aaa779b
Update src/schemas/validation/README.md
ralfhandl Feb 18, 2025
0a41814
Update schema-publish.sh
ralfhandl Feb 18, 2025
3e2604f
Merge branch 'dev-schemas-live-in-src' of https://github.com/ralfhand…
ralfhandl Feb 18, 2025
6f75109
Update package.json
ralfhandl Feb 18, 2025
f0fad47
Merge pull request #4368 from swaggerexpert/char0n/runtime-expressions
lornajane Feb 20, 2025
9fd4e2e
Merge pull request #4360 from ralfhandl/v3.1-uri-reference
lornajane Feb 20, 2025
35b2333
Merge pull request #4369 from ralfhandl/dev-one-spec-build-script
lornajane Feb 20, 2025
afa9511
Update schema-publish.yaml
ralfhandl Feb 20, 2025
90f9f2f
Update README.md
ralfhandl Feb 20, 2025
92e5fc9
Merge pull request #4361 from ralfhandl/dev-schemas-live-in-src
lornajane Feb 20, 2025
5dc0d94
Use correct pattern
ralfhandl Feb 21, 2025
4056207
Merge pull request #4378 from ralfhandl/dev-fix-schema-publish.yaml
lornajane Feb 22, 2025
20117c7
Update schema-publish.sh
duncanbeevers Feb 15, 2025
5c8ce0e
Merge pull request #4376 from duncanbeevers/dev-schemas-live-in-src
ralfhandl Feb 25, 2025
8a2e070
Remove yaml2json
duncanbeevers Feb 27, 2025
9f113bd
Merge pull request #4386 from duncanbeevers/remove-yaml2json
ralfhandl Feb 28, 2025
f981427
Update schema-publish.sh
ralfhandl Mar 1, 2025
143c641
Merge pull request #4392 from OAI/main
ralfhandl Mar 6, 2025
bfc3f8a
Merge pull request #4411 from OAI/main
lornajane Mar 6, 2025
9bcc030
Delete schema.yaml
ralfhandl Mar 6, 2025
3b45fd4
Update CONTRIBUTING.md
ralfhandl Mar 6, 2025
ca0b2f7
Revert "Update CONTRIBUTING.md"
ralfhandl Mar 6, 2025
c609a46
Revert "Update CONTRIBUTING.md"
ralfhandl Mar 6, 2025
67ac64d
Revert "Update CONTRIBUTING.md"
ralfhandl Mar 6, 2025
fb2bc8e
Revert "Update CONTRIBUTING.md"
ralfhandl Mar 6, 2025
86f3f67
Revert "Update CONTRIBUTING.md"
ralfhandl Mar 6, 2025
d7bbe0e
Merge pull request #4421 from OAI/main
ralfhandl Mar 10, 2025
c4cf1f2
Merge pull request #4417 from OAI/v3.1-dev-resolve-conflicts
handrews Mar 13, 2025
4189639
Merge pull request #4396 from OAI/dev
handrews Mar 13, 2025
5e1aebe
Merge pull request #4399 from ralfhandl/dev-schema-publish-fix-error-…
handrews Mar 13, 2025
5172ca5
Merge pull request #4431 from OAI/dev
ralfhandl Mar 13, 2025
3e72c1c
Merge pull request #4438 from OAI/main
ralfhandl Mar 14, 2025
2b4dbae
Merge pull request #4440 from OAI/dev
ralfhandl Mar 14, 2025
2ae9e1e
Merge pull request #4443 from OAI/main
ralfhandl Mar 17, 2025
875f73d
Merge pull request #4445 from OAI/dev
ralfhandl Mar 17, 2025
3bc53b8
Merge pull request #4449 from OAI/main
ralfhandl Mar 18, 2025
57d14eb
Merge pull request #4450 from OAI/dev
ralfhandl Mar 18, 2025
521a391
schema tests: output reason if "pass" test fixture fails
ralfhandl Mar 18, 2025
fcc25e5
Merge pull request #4457 from OAI/main
ralfhandl Mar 19, 2025
97982a5
Merge pull request #4460 from OAI/dev
ralfhandl Mar 19, 2025
52c89a3
Fixes #4463
ralfhandl Mar 19, 2025
6f26e0b
Schema coverage: 100%
ralfhandl Mar 18, 2025
c555c94
Merge pull request #4455 from ralfhandl/dev-schema-tests.-with-diagno…
handrews Mar 20, 2025
8e11b5e
Merge pull request #4475 from OAI/dev
ralfhandl Mar 20, 2025
ee38f90
Merge pull request #4474 from OAI/main
ralfhandl Mar 20, 2025
7f80945
Merge pull request #4477 from OAI/dev
ralfhandl Mar 20, 2025
bb79c48
Merge pull request #4483 from OAI/main
ralfhandl Mar 21, 2025
3d9995c
Merge pull request #4484 from OAI/dev
ralfhandl Mar 21, 2025
4e07303
Merge pull request #4465 from ralfhandl/3.1-fix-link-object-schema
miqui Mar 22, 2025
73f2e64
Merge pull request #4490 from OAI/main
ralfhandl Mar 24, 2025
fd1cd3b
Merge pull request #4496 from OAI/dev
ralfhandl Mar 24, 2025
ae0464c
Merge remote-tracking branch 'upstream/v3.1-dev' into 3.1-schema-test…
ralfhandl Mar 24, 2025
6f5e6c4
Add test case for "body"/"server" bug fix
ralfhandl Mar 27, 2025
5fb815d
Discrimator -> Discriminator
handrews Mar 27, 2025
6dc2065
Merge pull request #4507 from handrews/spelling
lornajane Mar 27, 2025
1c4214a
Merge pull request #4498 from OAI/main
ralfhandl Mar 28, 2025
f2b85b0
Merge pull request #4510 from OAI/dev
ralfhandl Mar 28, 2025
c548d75
Merge pull request #4519 from OAI/main
handrews Mar 30, 2025
13d3356
Merge pull request #4520 from OAI/dev
handrews Mar 30, 2025
c9cb607
Merge pull request #4524 from OAI/main
handrews Mar 31, 2025
177d639
Merge pull request #4525 from OAI/dev
handrews Mar 31, 2025
e085227
Merge pull request #4468 from ralfhandl/3.1-schema-test-coverage
handrews Apr 10, 2025
bfcd4a1
Merge pull request #4528 from OAI/main
handrews Apr 10, 2025
f132969
Merge pull request #4536 from OAI/dev
handrews Apr 10, 2025
5aa2c1c
Merge pull request #4550 from OAI/main
ralfhandl Apr 29, 2025
7b03a72
Merge pull request #4557 from OAI/dev
ralfhandl Apr 29, 2025
86e8b14
Merge pull request #4568 from OAI/main
handrews May 8, 2025
cc4cdbe
Merge pull request #4571 from OAI/dev
handrews May 8, 2025
fee957b
Merge pull request #4583 from OAI/main
handrews May 15, 2025
80f5126
Merge pull request #4586 from OAI/dev
handrews May 15, 2025
385f279
Root XML element name comes from component name
handrews May 13, 2025
58c4f06
Align wording with components rather than "root"
handrews May 15, 2025
f8a7ad4
Tidy up some suspect formatting
lornajane May 16, 2025
8fafda0
Merge pull request #4602 from OAI/main
handrews May 16, 2025
4ff5c2e
Merge pull request #4603 from OAI/dev
handrews May 16, 2025
8f03154
Provide guidance on null in XML.
handrews May 18, 2025
70274dc
Clarify that Request Body Objects need a body
handrews May 18, 2025
32f5c3c
Merge pull request #4601 from lornajane/tidy-formatting
ralfhandl May 19, 2025
21d0a85
Punctuation per style guide
handrews May 19, 2025
a200ab6
Fix capitalization
handrews May 19, 2025
b376a1d
Merge pull request #4614 from handrews/req-content
handrews May 20, 2025
f65b747
Merge pull request #4618 from OAI/main
handrews May 20, 2025
6aab818
Merge pull request #4619 from OAI/dev
handrews May 20, 2025
0e5c817
Merge pull request #4576 from handrews/xml-root-312
lornajane May 21, 2025
b3dd05f
Merge pull request #4612 from handrews/xml-null-312
lornajane May 22, 2025
651269e
chore: remove duplicate PR reviewers within GH actions
frankkilcommins May 27, 2025
57d4415
Merge pull request #4626 from frankkilcommins/remove-duplicate-reviewers
handrews May 27, 2025
1c0920c
Merge pull request #4628 from OAI/dev
handrews May 27, 2025
50bb009
Merge pull request #4635 from OAI/main
handrews May 28, 2025
9c02ae3
Merge pull request #4636 from OAI/dev
handrews May 28, 2025
4335224
Merge pull request #4639 from OAI/main
handrews May 29, 2025
005bd94
Merge pull request #4640 from OAI/dev
handrews May 29, 2025
26ab6e5
Merge pull request #4652 from OAI/main
handrews Jun 4, 2025
9393282
Merge pull request #4653 from OAI/dev
handrews Jun 4, 2025
7e7cb1d
Merge pull request #4668 from OAI/main
handrews Jun 9, 2025
f7684f3
Merge pull request #4669 from OAI/dev
handrews Jun 9, 2025
bda91e7
Merge pull request #4677 from OAI/main
handrews Jun 10, 2025
51e7b8e
Merge pull request #4678 from OAI/dev
handrews Jun 10, 2025
ec901cf
Merge pull request #4683 from OAI/main
ralfhandl Jun 11, 2025
1ad1a2f
Merge pull request #4684 from OAI/dev
ralfhandl Jun 11, 2025
f7deb02
Fail if schema test coverage is below 100%
ralfhandl Jun 11, 2025
7d9b1d9
Merge branch 'main-fail-if-schema-test-coverage-falls-below-100-perce…
ralfhandl Jun 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/respec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
delete-branch: true
path: deploy
labels: Housekeeping
reviewers: darrelmiller,webron,earth2marsh,webron,lornajane,mikekistler,miqui,ralfhandl,handrews,karenetheridge
reviewers: darrelmiller,webron,earth2marsh,lornajane,mikekistler,miqui,ralfhandl,handrews,karenetheridge
title: Update ReSpec-rendered specification versions
commit-message: Update ReSpec-rendered specification versions
signoff: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/schema-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
delete-branch: true
path: deploy
labels: Housekeeping,Schema
reviewers: darrelmiller,webron,earth2marsh,webron,lornajane,mikekistler,miqui,ralfhandl,handrews,karenetheridge
reviewers: darrelmiller,webron,earth2marsh,lornajane,mikekistler,miqui,ralfhandl,handrews,karenetheridge
title: '${{ github.ref_name }}: publish OpenAPI schema iterations'
commit-message: New OpenAPI schema iterations
signoff: true
Expand Down
4 changes: 4 additions & 0 deletions scripts/schema-test-coverage.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,7 @@ console.log(
allLocations.length,
"(" + Math.floor((visitedLocations.size / allLocations.length) * 100) + "%)",
);

if (visitedLocations.size != allLocations.length) {
process.exitCode = 1;
}
5 changes: 5 additions & 0 deletions scripts/schema-test-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@

[[ ! -e src/schemas ]] && exit 0

branch=$(git branch --show-current)

echo
echo "Schema Test Coverage"
echo

node scripts/schema-test-coverage.mjs src/schemas/validation/schema.yaml tests/schema/pass
rc=$?

[[ "$branch" == "dev" ]] || exit $rc
4,728 changes: 4,728 additions & 0 deletions src/oas.md

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions src/schemas/validation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# OpenAPI 3.X.Y JSON Schema

This directory contains the YAML sources for generating the JSON Schemas for validating OpenAPI definitions of versions 3.X.Y, which are published on [https://spec.openapis.org](https://spec.openapis.org).

Due to limitations of GitHub pages, the schemas on the spec site are served with `Content-Type: application/octet-stream`, but should be interpreted as `application/schema+json`.

The sources in this directory, which have `WORK-IN-PROGRESS` in their `$id`s, are _not intended for direct use_.

## Schema `$id` dates

The published schemas on the spec site have an _iteration date_ in their `id`s.
This allows the schemas for a release line to be updated independent of the spec patch release cycle.

The iteration version of the JSON Schema can be found in the `$id` field.
For example, the value of `$id: https://spec.openapis.org/oas/3.1/schema/2021-03-02` means this iteration was created on March 2nd, 2021.

We are [working on](https://github.com/OAI/OpenAPI-Specification/issues/4152) how to best provide programmatic access for determining the latest date for each schema.

## Choosing which schema to use

There are two schemas to choose from for versions 3.1 and greater, both of which have an `$id` that starts with `https://spec.openapis.org/oas/3.X/` and ends with the iteration date:

* `https://spec.openapis.org/oas/3.X/schema/{date}`, source: `schema.yaml` — A self-contained schema that _does not_ validate Schema Objects beyond `type: [object, boolean]`
* `https://spec.openapis.org/oas/3.X/meta/{date}`, source: `meta.yaml` — The vocabulary metaschema for OAS 3.X's extensions to draft 2020-12
* `https://spec.openapis.org/oas/3.X/dialect/base/{date}`, source: `base.yaml` — The dialect metaschema that extends the standard `draft/2020-12` metaschema by adding the OAS "base" vocabulary
* `https://spec.openapis.org/oas/3.1/schema-base/{date}`, source: `schema-base.yaml` — A schema that combines the self-contained schema and the "base" dialect schema to validate Schema Objects with the dialect; this schema does not allow changing `$schema` or `jsonSchemaDialect` to other dialects

The name "base" for the dialect was intended to indicate that the OAS dialect could be further extended.

An additional schema that validates the Schema Object with the OAS 3.X dialect but does not restrict changing `$schema` is [under consideration](https://github.com/OAI/OpenAPI-Specification/issues/4147).

## Improving the schemas

As a reminder, the JSON Schema is not the source of truth for the Specification. In cases of conflicts between the Specification itself and the JSON Schema, the Specification wins. Also, some Specification constraints cannot be represented with the JSON Schema so it's highly recommended to employ other methods to ensure compliance.

The schema only validates the mandatory aspects of the OAS.
Validating requirements that are optional, or field usage that has undefined or ignored behavior are not within the scope of this schema.
Schemas to perform additional optional validation are [under consideration](https://github.com/OAI/OpenAPI-Specification/issues/4141).

Improvements can be submitted by opening a PR against the `vX.Y-dev` branch of the respective specification version.

Modify the `schema.yaml` file and add test cases for your changes.

The TSC will then:
- Run tests on the updated schema
- Update the iteration version
- Publish the new version

The [test suite](../../../tests/schema) is part of this package.

```bash
npm install
npm test
```
21 changes: 21 additions & 0 deletions src/schemas/validation/dialect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
$id: https://spec.openapis.org/oas/3.1/dialect/WORK-IN-PROGRESS
$schema: https://json-schema.org/draft/2020-12/schema

title: OpenAPI 3.1 Schema Object Dialect
description: A JSON Schema dialect describing schemas found in OpenAPI v3.1 Descriptions

$dynamicAnchor: meta

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

allOf:
- $ref: https://json-schema.org/draft/2020-12/schema
- $ref: https://spec.openapis.org/oas/3.1/meta/WORK-IN-PROGRESS
70 changes: 70 additions & 0 deletions src/schemas/validation/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
$id: https://spec.openapis.org/oas/3.1/meta/WORK-IN-PROGRESS
$schema: https://json-schema.org/draft/2020-12/schema

title: OAS Base Vocabulary
description: A JSON Schema Vocabulary used in the OpenAPI Schema Dialect

$dynamicAnchor: meta

$vocabulary:
https://spec.openapis.org/oas/3.1/vocab/base: true

type:
- object
- boolean
properties:
discriminator:
$ref: '#/$defs/discriminator'
example: true
externalDocs:
$ref: '#/$defs/external-docs'
xml:
$ref: '#/$defs/xml'

$defs:
discriminator:
$ref: '#/$defs/extensible'
properties:
mapping:
additionalProperties:
type: string
type: object
propertyName:
type: string
required:
- propertyName
type: object
unevaluatedProperties: false

extensible:
patternProperties:
^x-: true
external-docs:
$ref: '#/$defs/extensible'
properties:
description:
type: string
url:
format: uri-reference
type: string
required:
- url
type: object
unevaluatedProperties: false

xml:
$ref: '#/$defs/extensible'
properties:
attribute:
type: boolean
name:
type: string
namespace:
format: uri
type: string
prefix:
type: string
wrapped:
type: boolean
type: object
unevaluatedProperties: false
20 changes: 20 additions & 0 deletions src/schemas/validation/schema-base.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$id: 'https://spec.openapis.org/oas/3.1/schema-base/WORK-IN-PROGRESS'
$schema: 'https://json-schema.org/draft/2020-12/schema'

description: The description of OpenAPI v3.1.x Documents using the OpenAPI JSON Schema dialect

$ref: 'https://spec.openapis.org/oas/3.1/schema/WORK-IN-PROGRESS'
properties:
jsonSchemaDialect:
$ref: '#/$defs/dialect'

$defs:
dialect:
const: 'https://spec.openapis.org/oas/3.1/dialect/WORK-IN-PROGRESS'

schema:
$dynamicAnchor: meta
$ref: 'https://spec.openapis.org/oas/3.1/dialect/WORK-IN-PROGRESS'
properties:
$schema:
$ref: '#/$defs/dialect'
Loading