├── .gitattributes ├── .github ├── dependabot.yml ├── stale.yml ├── tests_checker.yml └── workflows │ └── ci.yml ├── .gitignore ├── .npmrc ├── LICENSE ├── MIGRATION.md ├── README.md ├── eslint.config.js ├── examples ├── collection-format.js ├── dynamic-openapi.js ├── dynamic-overwrite-endpoint.js ├── dynamic-swagger.js ├── example-static-specification.js ├── example-static-specification.json ├── example-static-specification.yaml ├── json-in-querystring.js ├── options.js ├── static-json-file.js ├── static-yaml-file.js └── test-package.json ├── index.d.ts ├── index.js ├── lib ├── constants.js ├── mode │ ├── dynamic.js │ └── static.js ├── spec │ ├── openapi │ │ ├── index.js │ │ └── utils.js │ └── swagger │ │ ├── index.js │ │ └── utils.js ├── symbols.js └── util │ ├── add-hook.js │ ├── format-param-url.js │ ├── generate-params-schema.js │ ├── match-params.js │ ├── read-package-json.js │ ├── resolve-local-ref.js │ ├── resolve-schema-reference.js │ ├── resolve-swagger-function.js │ └── should-route-hide.js ├── package.json ├── test-types ├── http2-types.test-d.ts ├── imports.test-d.ts ├── minimal-openapiV3-document.ts ├── swagger-ui-vendor-extensions.test-d.ts └── types.test-d.ts └── test ├── decorator.test.js ├── esm ├── esm.mjs └── index.test.js ├── mode └── static.test.js ├── spec ├── openapi │ ├── option.test.js │ ├── refs.test.js │ ├── route.test.js │ └── schema.test.js └── swagger │ ├── option.test.js │ ├── refs.test.js │ ├── route.test.js │ └── schema.test.js ├── transform.test.js └── util.test.js /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/.github/stale.yml -------------------------------------------------------------------------------- /.github/tests_checker.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/.github/tests_checker.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true 2 | package-lock=false 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/LICENSE -------------------------------------------------------------------------------- /MIGRATION.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/MIGRATION.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/eslint.config.js -------------------------------------------------------------------------------- /examples/collection-format.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/examples/collection-format.js -------------------------------------------------------------------------------- /examples/dynamic-openapi.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/examples/dynamic-openapi.js -------------------------------------------------------------------------------- /examples/dynamic-overwrite-endpoint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/examples/dynamic-overwrite-endpoint.js -------------------------------------------------------------------------------- /examples/dynamic-swagger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/examples/dynamic-swagger.js -------------------------------------------------------------------------------- /examples/example-static-specification.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/example-static-specification.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/examples/example-static-specification.json -------------------------------------------------------------------------------- /examples/example-static-specification.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/examples/example-static-specification.yaml -------------------------------------------------------------------------------- /examples/json-in-querystring.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/examples/json-in-querystring.js -------------------------------------------------------------------------------- /examples/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/examples/options.js -------------------------------------------------------------------------------- /examples/static-json-file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/examples/static-json-file.js -------------------------------------------------------------------------------- /examples/static-yaml-file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/examples/static-yaml-file.js -------------------------------------------------------------------------------- /examples/test-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "test" 3 | } 4 | -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/index.d.ts -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/index.js -------------------------------------------------------------------------------- /lib/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/constants.js -------------------------------------------------------------------------------- /lib/mode/dynamic.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/mode/dynamic.js -------------------------------------------------------------------------------- /lib/mode/static.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/mode/static.js -------------------------------------------------------------------------------- /lib/spec/openapi/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/spec/openapi/index.js -------------------------------------------------------------------------------- /lib/spec/openapi/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/spec/openapi/utils.js -------------------------------------------------------------------------------- /lib/spec/swagger/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/spec/swagger/index.js -------------------------------------------------------------------------------- /lib/spec/swagger/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/spec/swagger/utils.js -------------------------------------------------------------------------------- /lib/symbols.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/symbols.js -------------------------------------------------------------------------------- /lib/util/add-hook.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/util/add-hook.js -------------------------------------------------------------------------------- /lib/util/format-param-url.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/util/format-param-url.js -------------------------------------------------------------------------------- /lib/util/generate-params-schema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/util/generate-params-schema.js -------------------------------------------------------------------------------- /lib/util/match-params.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/util/match-params.js -------------------------------------------------------------------------------- /lib/util/read-package-json.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/util/read-package-json.js -------------------------------------------------------------------------------- /lib/util/resolve-local-ref.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/util/resolve-local-ref.js -------------------------------------------------------------------------------- /lib/util/resolve-schema-reference.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/util/resolve-schema-reference.js -------------------------------------------------------------------------------- /lib/util/resolve-swagger-function.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/util/resolve-swagger-function.js -------------------------------------------------------------------------------- /lib/util/should-route-hide.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/lib/util/should-route-hide.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/package.json -------------------------------------------------------------------------------- /test-types/http2-types.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test-types/http2-types.test-d.ts -------------------------------------------------------------------------------- /test-types/imports.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test-types/imports.test-d.ts -------------------------------------------------------------------------------- /test-types/minimal-openapiV3-document.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test-types/minimal-openapiV3-document.ts -------------------------------------------------------------------------------- /test-types/swagger-ui-vendor-extensions.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test-types/swagger-ui-vendor-extensions.test-d.ts -------------------------------------------------------------------------------- /test-types/types.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test-types/types.test-d.ts -------------------------------------------------------------------------------- /test/decorator.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/decorator.test.js -------------------------------------------------------------------------------- /test/esm/esm.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/esm/esm.mjs -------------------------------------------------------------------------------- /test/esm/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/esm/index.test.js -------------------------------------------------------------------------------- /test/mode/static.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/mode/static.test.js -------------------------------------------------------------------------------- /test/spec/openapi/option.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/spec/openapi/option.test.js -------------------------------------------------------------------------------- /test/spec/openapi/refs.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/spec/openapi/refs.test.js -------------------------------------------------------------------------------- /test/spec/openapi/route.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/spec/openapi/route.test.js -------------------------------------------------------------------------------- /test/spec/openapi/schema.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/spec/openapi/schema.test.js -------------------------------------------------------------------------------- /test/spec/swagger/option.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/spec/swagger/option.test.js -------------------------------------------------------------------------------- /test/spec/swagger/refs.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/spec/swagger/refs.test.js -------------------------------------------------------------------------------- /test/spec/swagger/route.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/spec/swagger/route.test.js -------------------------------------------------------------------------------- /test/spec/swagger/schema.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/spec/swagger/schema.test.js -------------------------------------------------------------------------------- /test/transform.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/transform.test.js -------------------------------------------------------------------------------- /test/util.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastify/fastify-swagger/HEAD/test/util.test.js --------------------------------------------------------------------------------