Skip to content

Commit 2c97294

Browse files
authored
Merge pull request #4435 from ralfhandl/main-clean-up-schemas
main: move old schemas to _archive_
2 parents 26b12e4 + 73b9809 commit 2c97294

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+18
-1491
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ node_modules/
88
deploy/
99
deploy-preview/
1010
coverage/
11-
history
11+
_site/
1212
Gemfile.lock

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ This GitHub project is the starting point for OpenAPI. Here you will find the in
1919

2020
This repository contains [the Markdown sources](versions) for [all published OpenAPI Specification versions](https://spec.openapis.org/). For release notes and release candidate versions, refer to the [releases page](releases).
2121

22-
Each folder in this repository, such as [schemas](schemas) and [tests](tests), should contain folders pertaining to the current and previous versions of the specification.
23-
2422
## See It in Action
2523

2624
If you just want to see it work, check out the [list of current examples](https://learn.openapis.org/examples/).

_archive_/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Archive
2+
3+
This folder contains files that are no longer actively maintained.

_archive_/schemas/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Archive of outdated JSON Schema Files
2+
3+
> [!TIP]
4+
> JSON Schema files for validating OpenAPI descriptions using current OpenAPI versions are available on https://spec.openapis.org/#openapi-specification-schemas.
5+
>
6+
> These schema files are maintained in the `src/schemas` folder of the corresponding `vX.Y-dev` branch in this repository.
7+
8+
> [!CAUTION]
9+
> Schema files in this folder are not maintained any more and are not intended for productive use.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/v3.0/schema.test.mjs renamed to _archive_/schemas/v3.0/schema.test.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const parseYamlFromFile = (filePath) => {
2626

2727
setMetaSchemaOutputFormat(BASIC);
2828

29-
const validateOpenApi = await validate("./schemas/v3.0/schema.yaml");
30-
const folder = './tests/v3.0/pass/';
29+
const validateOpenApi = await validate("./_archive_/schemas/v3.0/schema.yaml");
30+
const folder = './_archive_/schemas/v3.0/pass/';
3131

3232
describe("pass", async () => {
3333
readdirSync(folder, { withFileTypes: true })
File renamed without changes.

schemas/v3.1/README.md

-54
This file was deleted.

schemas/v3.1/dialect.yaml

-21
This file was deleted.

schemas/v3.1/meta.yaml

-70
This file was deleted.

schemas/v3.1/schema-base.yaml

-20
This file was deleted.

0 commit comments

Comments
 (0)