├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .github └── workflows │ ├── main.yml │ └── release.yml ├── .gitignore ├── .prettierrc.js ├── CHANGELOG.md ├── LICENSE ├── README.md ├── bin ├── dev ├── dev.cmd ├── run └── run.cmd ├── examples ├── fromAutomaton │ ├── openweather.json │ ├── wttr-in.json │ └── xkcd.json ├── getsandbox.yaml ├── github.yaml ├── opencage.yaml ├── openweathermap.yaml ├── petstore.yaml └── vonage.yaml ├── jest.config.js ├── package.json ├── src ├── commands │ └── lint.ts ├── index.ts └── spectral │ ├── functions │ ├── missing-input-schema.ts │ ├── oas2-content-negotiation.ts │ ├── oas2-unsupported-media-type.ts │ ├── oas3-unsupported-media-type.ts │ ├── operation-error-response.ts │ └── sf-oas3-missing-schema-property-example.ts │ ├── index.ts │ ├── lint.ts │ ├── ruleset.ts │ ├── tests │ ├── helpers │ │ └── test-rule.ts │ ├── sf-missing-input-schema.test.ts │ ├── sf-missing-operation-summary.test.ts │ ├── sf-oas2-allOf.test.ts │ ├── sf-oas2-content-negotiation.test.ts │ ├── sf-oas2-missing-schema-property-example.test.ts │ ├── sf-oas2-unsupported-media-type.test.ts │ ├── sf-oas3-allOf.test.ts │ ├── sf-oas3-anyOf.test.ts │ ├── sf-oas3-missing-schema-property-example.test.ts │ ├── sf-oas3-oneOf.test.ts │ ├── sf-oas3-unsupported-media-type.test.ts │ └── sf-operation-error-response.test.ts │ └── utils │ ├── format.ts │ └── index.ts ├── tsconfig.json ├── tsconfig.release.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | coverage 4 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/README.md -------------------------------------------------------------------------------- /bin/dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/bin/dev -------------------------------------------------------------------------------- /bin/dev.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | node "%~dp0\dev" %* -------------------------------------------------------------------------------- /bin/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/bin/run -------------------------------------------------------------------------------- /bin/run.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | node "%~dp0\run" %* 4 | -------------------------------------------------------------------------------- /examples/fromAutomaton/openweather.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/examples/fromAutomaton/openweather.json -------------------------------------------------------------------------------- /examples/fromAutomaton/wttr-in.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/examples/fromAutomaton/wttr-in.json -------------------------------------------------------------------------------- /examples/fromAutomaton/xkcd.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/examples/fromAutomaton/xkcd.json -------------------------------------------------------------------------------- /examples/getsandbox.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/examples/getsandbox.yaml -------------------------------------------------------------------------------- /examples/github.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/examples/github.yaml -------------------------------------------------------------------------------- /examples/opencage.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/examples/opencage.yaml -------------------------------------------------------------------------------- /examples/openweathermap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/examples/openweathermap.yaml -------------------------------------------------------------------------------- /examples/petstore.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/examples/petstore.yaml -------------------------------------------------------------------------------- /examples/vonage.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/examples/vonage.yaml -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/package.json -------------------------------------------------------------------------------- /src/commands/lint.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/commands/lint.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/spectral/functions/missing-input-schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/functions/missing-input-schema.ts -------------------------------------------------------------------------------- /src/spectral/functions/oas2-content-negotiation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/functions/oas2-content-negotiation.ts -------------------------------------------------------------------------------- /src/spectral/functions/oas2-unsupported-media-type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/functions/oas2-unsupported-media-type.ts -------------------------------------------------------------------------------- /src/spectral/functions/oas3-unsupported-media-type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/functions/oas3-unsupported-media-type.ts -------------------------------------------------------------------------------- /src/spectral/functions/operation-error-response.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/functions/operation-error-response.ts -------------------------------------------------------------------------------- /src/spectral/functions/sf-oas3-missing-schema-property-example.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/functions/sf-oas3-missing-schema-property-example.ts -------------------------------------------------------------------------------- /src/spectral/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/index.ts -------------------------------------------------------------------------------- /src/spectral/lint.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/lint.ts -------------------------------------------------------------------------------- /src/spectral/ruleset.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/ruleset.ts -------------------------------------------------------------------------------- /src/spectral/tests/helpers/test-rule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/helpers/test-rule.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-missing-input-schema.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-missing-input-schema.test.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-missing-operation-summary.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-missing-operation-summary.test.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-oas2-allOf.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-oas2-allOf.test.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-oas2-content-negotiation.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-oas2-content-negotiation.test.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-oas2-missing-schema-property-example.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-oas2-missing-schema-property-example.test.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-oas2-unsupported-media-type.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-oas2-unsupported-media-type.test.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-oas3-allOf.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-oas3-allOf.test.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-oas3-anyOf.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-oas3-anyOf.test.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-oas3-missing-schema-property-example.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-oas3-missing-schema-property-example.test.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-oas3-oneOf.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-oas3-oneOf.test.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-oas3-unsupported-media-type.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-oas3-unsupported-media-type.test.ts -------------------------------------------------------------------------------- /src/spectral/tests/sf-operation-error-response.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/tests/sf-operation-error-response.test.ts -------------------------------------------------------------------------------- /src/spectral/utils/format.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/src/spectral/utils/format.ts -------------------------------------------------------------------------------- /src/spectral/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * from './format'; 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.release.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/tsconfig.release.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superfaceai/openapi-linter/HEAD/yarn.lock --------------------------------------------------------------------------------