Other enhancements and bug fixes
- [Enhancement] Add support for rendering default value (#189)
High level enhancements
- Upgraded to Docusaurus v2.0.1
- Refactored qualifiers to improve readability
- Added support for response headers
- Added support for x-logo and x-dark-logo extensions
- Added support for discriminators
- Added support for response status code examples
Other enhancements and bug fixes
- [Bug] Improve handling of schema.items qualifiers (#186)
- Upgrade to Docusaurus v2.0.1 (#185)
- [FR] Support for response status code examples (#176)
- [Enhancement] Add support for x-logo and x-dark-logo extensions (#184)
- [Bug] Fix createPostmanCollection method where a copy of openapiData is generated (#183)
- [Enhancement] Refactor qualifiers to improve readability (#181)
- [Bug] Use basePath in place of slug to avoid duplicate routes (#173)
- [Enhancement] Add support for discriminators (#174)
- Add support for response headers (#171)
High level enhancements
- Rename Endpoint to Base URL.
- Display Base URL form field even if only one URL option is available to select.
- Default
baseIdtooperationIdinstead ofsummaryto avoid duplicate routes.
Other enhancements and bug fixes
- [Bug] Use copy of openapiData to generate postman collection (#167)
High level enhancements
- Upgrade to docusaurus 2.0.0-rc.1
Other enhancements and bug fixes
- Upgrade to docusaurus 2.0.0-rc.1 (#164)
High level enhancements
- Refactor
createSchemaDetails.tsto improve support foranyOf,oneOf, andallOfschemas (#160) - [Enhancement] Improve support for circular $ref pointers (#154)
- [Upgrade] Docusaurus Beta 22 support (#155)
Other enhancements and bug fixes
- Check for basePath before defining intro and category link doc ids (#159)
- [Enhancement] Integrate ReDoc OpenAPIParser (#148)
- [FR] ApiDemoPanel (a11y): Improve keyboard tab support (#149)
- Add await to resolveJsonRefs (#147)
- [Enhancement] Add oneOf and anyOf support (#139)
- Add sidebar and versioning docs (#137)
High level enhancements
- Rename
docPluginIdoption todocsPluginId. - Ensure unique category link for versioned docs when
groupTagsByis set to "tag". - Introduce lower-level
json-schema-ref-parserfor handling non-OpenAPI-compliant$refpointers.
Other enhancements and bug fixes
High level enhancements
- Extended Docusaurus syntax handling to code samples.
- Implemented CodeTab choice synching for code samples.
- Cleanup XML body editing.
Other enhancements and bug fixes
- [Experimental] Code block/editor optimizations (#132)
High level enhancements
- Converted demo site to official documentation site.
- Added support for generating versioned OpenAPI docs.
Other enhancements and bug fixes
- [Enhancement] Use
docPluginIdto deriverouteBasePathandpath(#127) - [Enhancement] Add route base path support (#126)
- Re-gen versioned petstore docs
- [Enhancement] Add versioning support to OpenAPI docs plugin (#125)
- [FR] OpenApi Docs: Expand details by 1L for Desktop (#122)
- [Enhancement] Use plugin-content-docs path when generating sidebar doc items (#124)
- Update README.md and documentation
High level enhancements
- Upgrade to Docusaurus 2.0.0-beta.21 (#116)
- Add support for URL specPath (#120)
- [Enhancement] Implement new OpenAPI parser (#118)
- [Experimental] Info Docs: Added Authentication section with support for Security Schemes (#110)
- [Enhancement] Use docs with embedded links as category link (#114)
Other enhancements and bug fixes
- Update README.md
- Add try/catch to createExample (#115)
- [Bug] Reinstate support for untagged paths (#107)
- [Polish] Add support for head method and badge (#105)
- [Polish] Update demo (#104)
High level enhancements
- Added support for defining
categoryLinkSourcewhen grouping paths by tag - Extend support for additional
SecuritySchemes
Other enhancements and bug fixes
- Add categoryLinkSource to usage (#101)
- [Bug] Refactor categoryLinkSource option and usage (#100)
- Add extra conditions to check for undefined info properties (#98)
- [Enhancement] Improve category link support when grouping by tags (#97)
- [FR] Additional supported fields for index.api.mdx (#96)
- [FR] Added security schemes support for SecuritySchemes component (#93)
- [Bug] Add missing openapi code colors (#87)
- Add conditions for empty body or body content (#86)
- Add support for canary releases (#85)
- [Theme]: Fix @theme/Tabs namespace collision (#84)
- [Polish] Cleanup @ts-ignore usage throughout project (#80)
High level enhancements
- Pin Docusaurus to v2.0.0-beta.18
- Adopt strategy of pinning Docusaurus version until viable upgrade path exists
Other enhancements and bug fixes
- [Fix Breaking Change] Pin to docusaurus 2.0.0-beta.18 (#76)
- Add keywords and update git URL (#74)
- Switch from panw-main to main
High level enhancements
- Update README, LICENSE, and other supporting documentation
- Remove @paloaltonetworks scope from package name
- Rename main repository and packages to:
- Repository:
docusaurus-openapi-docs - Plugin:
docusaurus-plugin-openapi-docs - Theme:
docusaurus-theme-openapi-docs
- Repository:
High level enhancements
- Upgrade to Docusaurus 2.0.0-beta.18
- Remove docusaurus-template-openapi and create-docusaurus-openapi
Note that template moved to it's own GitHub repository
💥 Breaking Changes
- [New Feature]: Extend CLI to support generating API docs (#55)
High level enhancements
Other enhancements and bug fixes
- Merge pull request #60 from PaloAltoNetworks/update-ApiItem
- fix page width
- Update package.json
- Merge pull request #52 from PaloAltoNetworks/api-demo-panel-styling
- Add important flag to openapi-card-background-color
- Update openapi variables
- Merge branch 'panw-main' of https://github.com/PaloAltoNetworks/docusaurus-openapi into api-demo-panel-styling
- [Workaround]: Ensure info/index doc is first item in sidebar (#51)
- Add background styling to demo panel
- Merge pull request #50 from PaloAltoNetworks/editor-cleanup
- Revert light bright styling
- Define openapi-required css variable
- Remove useMonaco hook and import Monaco type
- Remove console log
- Fix mustache template (#49)
- [Bug Fix]: CORS Issue - Monaco editor (#48)
- [Experimental] Enable prev/next for beforeApiDocs items (#45)
High level enhancements
- Move over necessary TS modules and types for
SchemaItemandParamsItemcomponents
Bug fixes
- Fix Babel-loader import warnings (#42)
High level enhancements
- Refactor
createSchemaDetailsas theme component - Refactor
createParamsDetailsas theme component - Reduce overall MDX file sizes in final bundle
- Add/improve support for handling
allOfschema type
Other enhancements and bug fixes
- Improvements/fixes to
allOfschema support (#40) - Merge pull request #39 from PaloAltoNetworks/schema-component
- Cleanup unnecessary divs and indentation
- Add margin-bottom after each params type
- Remove param item margin-top
- Use react-markdown for descriptions
- Remove react-markdown from plugin package.json
- Use children props for details in SchemaItem
- Fix imports
- Add react-markdown to theme-openapi dependencies
- Add react-markdown
- Fix linting issues
- Readd createDetails for collapsible content
- Import util functions from @paloaltonetworks
- Merge branch 'panw-main' of https://github.com/PaloAltoNetworks/docusaurus-openapi into schema-component
- Remove margin-left from schemaDescription and schemaQualifierMessage
- Remove empty line
- Remove unused listStyle object
- Add SchemaItem styling
- Create SchemaItem component
- Update ParamsItem styling
- Remove unused import
- Import SchemaItem component into createApiPageMD
- Use SchemaItem component in createSchemaDetails
- Remove escape func for examples
- Organize imports
- Remove unused imports
- Add styling to ParamsItem component
- Import ParamsItem component into createApiPageMD
- Create ParamsItem component
- Remove statically created elements from createParamsDetails
High level enhancements
- Switch to forked versions of postman dependencies to reduce bundle size.
Other enhancements and bug fixes
High level enhancements
- Switch to @paloaltonetworks/postman-code-generators
Other enhancements and bug fixes
- Switch to @paloaltonetworks/postman-code-generators (#33)
High level enhancements
- Convert patch-package to full dependency.
High level enhancements
- Nohoist
postman-collectionandpostman-code-generatorsto support package-level patching. - Add schema guidelines to improve readability.
- Improve responsiveness.
Other enhancements and bug fixes
- Add patch-package to standalone packages (#29)
- Add guidelines to collapsible schemas (#27)
- Merge pull request #26 from PaloAltoNetworks/response-tweaks-v2
- Update tabs css
- Revert to original ApiPage media query
- Responsiveness tweaks (#25)
- Manually bump to 17.0.3 (#24)
- Merge pull request #23 from PaloAltoNetworks/ui-cleanup
- Increase cypress viewport size
- Hide ApiItem doc pagination on mobile
- Pass down previous and next props to ApiDemoPanel from ApiItem
- Import DocPaginator into ApiDemoPanel
- Adjust responseTabsContainer width
- Adjust apiSidebarContainer media query
High level enhancements
Other enhancements and bug fixes
- Added workflow for Firebase deployment
- Minor fixes to Tabs component
- Minor fixes to schema indentation
Bug fixes
- Merge pull request #13 from PaloAltoNetworks/refactor-tabs
- Update schema indentation
- Refactor response tab dot styling
High level enhancements
- Allow GitHub Actions to publish to npm
- Minor fix to status code Tabs component
Other enhancements and bug fixes
High level enhancements
- Support for Docusuaurs 2.0.0-beta.17!
- New collapsible schema component (replaces tables)
- New Tabs component for status code responses
Bug fixes and such
- Set max-width for schema component
- Disable exhaustive-deps eslint
- Fix infinite render in ParamOptions
- Upgrade
openapi-to-postmanv2to latest release (3.0.0) - Disable
schemaFaker - Remove
operationIdfrom ApiItem - Change ApiItem title to h2
- Use colored badge for method
- Update cypress tests
- Update sidebars tests
Bug fixes
- Fixed type definitions for
showManualAuthenticationandshowExecuteButtonin ApiDemoPanel component
First release of @paloaltonetworks/docusaurus-openapi
High level enhancements
- Support for Docusaurus 2.0.0-beta.15
- Use details component for status code response tables
- Adds options to hide Execute button and auth input field
High level enhancements
- All theme components are now TypeScript 🎉
Other enhancements and bug fixes
- Fix small theme regression (#151)
- Clear request body when empty (#147)
- Fix code editor background color bug (#146)
- Update theme components to TypeScript (#130)
Enhancements and bug fixes
Enhancements and bug fixes
High level enhancements
-
Docusaurus beta.14 support
// Be sure to update @docusaurus/core: "dependencies": { "@docusaurus/core": "2.0.0-beta.14", // ... }
-
With the release of Docusaurus beta.14 (Thanks @slorber!), we can now support configuration of
webpack-dev-server's proxy via ourdocusaurus-plugin-proxyplugin.This can be useful when you have a separate API backend development server and you want to send API requests on the same domain.
With the following, a request to
/api/userswill now proxy the request tohttp://localhost:3001/api/users:// docusaurus.config.js const config = { plugins: [["docusaurus-plugin-proxy", { "/api": "http://localhost:3001" }]], // ... };
To proxy
/api/userstohttp://localhost:3001/users, the path can be rewritten:// docusaurus.config.js const config = { plugins: [ [ "docusaurus-plugin-proxy", { "/api": { target: "http://localhost:3001", pathRewrite: { "^/api": "" }, }, }, ], ], // ... };
For more config options, see devServer.proxy.
-
Better yarn 3 support
Other enhancements and bug fixes
High level enhancements
-
Added support for more schema qualifiers:
- maxLength - minLength - maximum - minumum - exclusiveMaximum - exclusiveMinimum - patternExample:
slug: type: string description: The human-readable, unique identifier, used to identify the document. minLength: 1 maxLength: 40 pattern: "^[a-zA-Z0-9_-]*$"
Displays:
slugstringPossible values: 1 ≤ length ≤ 40, Value must match regular expression
^[a-zA-Z0-9_-]*$The human-readable, unique identifier, used to identify the document.
Other enhancements and bug fixes
- Add additional schema qualifiers (#112)
- Sidebar generation refactor (#111)
- Add recursive folder structure reading & labeling support (#107)
- Add experimental support for loading a multiple OpenAPI definitions (#103)
- Add sidebar item classname for method (#104)
- Fix schema name bug with allOf (#102)
High level enhancements
-
Docusaurus beta.13 support (Thanks @Josh-Cena!)
// Be sure to update @docusaurus/core: "dependencies": { "@docusaurus/core": "2.0.0-beta.13", // ... }
-
The OpenAPI
infostanza will now generate an "Introduction" pageopenapi: 3.0.3 info: title: Swagger Petstore version: 1.0.0 description: | This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
-
Request bodies will now render JSON Schema with the use of
allOfkeywordsrequestBody: content: description: Example request application/json: schema: allOf: - $ref: "#/components/schema/Example1" - $ref: "#/components/schema/Example2"
-
Enum options will now be displayed in schema tables
statusstringEnum:
"available","pending","sold"Pet status in the store
Other enhancements and bug fixes
- Initial proxy code (#97)
- Add support for an introduction page (#94)
- Add
allOfJSON schema support (#96) - Display enum values in tables (#93)
- Initial plugin refactor (#86)
- Upgrade to Docusaurus beta.13 (#88)
Enhancements and bug fixes
Fix broken package
High level enhancements
- The demo panel now allows you to choose the security scheme from a dropdown that is populated by the OpenAPI definition (only showing the dropdown if more than one is listed)
- Adds support for using multiple auth modes simultaneously (Eg:
(BearerAuth) OR (ApiKeyAuth AND BasicAuth)) - Adds an
authPersistenceoption tothemeConfig.api. Defaults to"localStorage", can be set tofalseto disable orsessionStorageto only persist while the window is open.
Other enhancements and bug fixes
- Add better auth support (#74)
The plugin option openapiPath has been renamed to path and no longer needs to be wrapped in require.resolve.
As recomended my the Docusaurus documentation, the plugin docusaurus-plugin-api has been properly split into 3 packages:
docusaurus-preset-apidocusaurus-plugin-apidocusaurus-theme-api
The package docusaurus-plugin-api will no longer work on it's own without docusaurus-theme-api. Instead, the preset docusaurus-preset-api can be used on it's own and act as a drop-in replacement for @docusaurus/preset-classic.
Example usage:
// docusaurus.config.js
const config = {
- plugins: [
- [
- "docusaurus-plugin-openapi",
- {
- openapiPath: require.resolve("./examples/openapi.json"),
- },
- ],
- ],
presets: [
[
- "@docusaurus/preset-classic",
+ "docusaurus-preset-openapi",
{
+ api: {
+ path: "examples/openapi.json",
+ }
docs: {
// doc options ...
},
blog: {
// blog options ...
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
}Other enhancements and bug fixes
- Fix multi plugin bug (#69)
- Add yaml support (#68)
- Generate markdown for full page (#65)
- Refactor plugin into separate packages (#64)
- Update documentation (#63)
Enhancements and bug fixes
Enhancements and bug fixes