Skip to content

examples/v3.1/tictactoe fix security property name #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Changes from all commits
Commits
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 examples/v3.1/tictactoe.json
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@
},
"security": [
{
"apiKey": []
"defaultApiKey": []
},
{
"app2AppOauth": ["board:read"]
2 changes: 1 addition & 1 deletion examples/v3.1/tictactoe.yaml
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ paths:
schema:
$ref: '#/components/schemas/status'
security:
- apiKey: []
- defaultApiKey: []
- app2AppOauth:
- board:read
# Single square operations

Unchanged files with check annotations Beta

const schema = await fetch('https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json');
writeFileSync('./tests/v3.0/schema.json', await schema.text());
const validateOpenApi = await validate('./tests/v3.0/schema.json');

Check failure on line 18 in tests/v3.0/examples.test.js

GitHub Actions / test

tests/v3.0/examples.test.js

RetrievalError: Unable to load resource 'file:///home/runner/work/learn.openapis.org/learn.openapis.org/tests/v3.0/schema.json'. ❯ get node_modules/@hyperjump/browser/lib/browser/browser.js:29:13 ❯ getSchema node_modules/@hyperjump/json-schema/lib/schema.js:31:18 ❯ Module.validate node_modules/@hyperjump/json-schema/lib/core.js:21:18 ❯ tests/v3.0/examples.test.js:18:25 Caused by: SyntaxError: Unexpected non-whitespace character after JSON at position 3 ❯ Object.parse node_modules/@hyperjump/json-schema/lib/schema.js:15:32 ❯ get node_modules/@hyperjump/browser/lib/browser/browser.js:24:26 ❯ getSchema node_modules/@hyperjump/json-schema/lib/schema.js:31:18 ❯ Module.validate node_modules/@hyperjump/json-schema/lib/core.js:21:18
const folder = './examples/v3.0/';
describe("v3.0 - Validate examples", async () => {
const schema = await fetch('https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json');
writeFileSync('./tests/v3.1/schema.json', await schema.text());
const validateOpenApi = await validate("./tests/v3.1/schema.json");

Check failure on line 18 in tests/v3.1/examples.test.js

GitHub Actions / test

tests/v3.1/examples.test.js

RetrievalError: Unable to load resource 'file:///home/runner/work/learn.openapis.org/learn.openapis.org/tests/v3.1/schema.json'. ❯ get node_modules/@hyperjump/browser/lib/browser/browser.js:29:13 ❯ getSchema node_modules/@hyperjump/json-schema/lib/schema.js:31:18 ❯ Module.validate node_modules/@hyperjump/json-schema/lib/core.js:21:18 ❯ tests/v3.1/examples.test.js:18:25 Caused by: SyntaxError: Unexpected non-whitespace character after JSON at position 3 ❯ Object.parse node_modules/@hyperjump/json-schema/lib/schema.js:15:32 ❯ get node_modules/@hyperjump/browser/lib/browser/browser.js:24:26 ❯ getSchema node_modules/@hyperjump/json-schema/lib/schema.js:31:18 ❯ Module.validate node_modules/@hyperjump/json-schema/lib/core.js:21:18
const folder = './examples/v3.1/';
describe("v3.1 - Validate examples", async () => {