Skip to content
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

[V3] OpenAPI 3.0 Preview #660

Closed
wants to merge 69 commits into from
Closed

[V3] OpenAPI 3.0 Preview #660

wants to merge 69 commits into from

Conversation

sserrata
Copy link
Member

@sserrata sserrata commented Nov 17, 2023

Description

Long-standing PR for v3.0.0 release.

Preview: https://docusaurus-openapi-36b86--pr660-xyj5psbp.web.app/

Motivation and Context

Provides support for Docusaurus v3.0.0

Note: this branch automatically deploys canary releases and will be periodically used to deploy 3.0.0-beta.x releases that can you be used in your project(s). Please check README/homepage/announcements for the latest beta release.

Copy link

github-actions bot commented Nov 17, 2023

Visit the preview URL for this PR (updated for commit 3675c4e):

https://docusaurus-openapi-36b86--pr660-xyj5psbp.web.app

(expires Fri, 02 Aug 2024 13:56:06 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@jcwillox
Copy link

Thanks for putting this together, excited to get our docs up and running with Docusaurus 3 👍
I've just tested it on around 300 endpoints and had no issues with mdx or running it with docusaurus 3, everything appears to work correctly except the JSON syntax highlighting is not working for the response examples and the actual response body after using the send request button, the issue is also present in your preview deployment. For us, it's also not working in the editable request body, although we also had that specific issue in v2, so likely unrelated.

image

sserrata and others added 6 commits December 1, 2023 10:41
* add negative look behind to exclude colon delimited path segments (#663)

* use SCHEMA_TYPE to distinguish request/response to support readOnly/writeOnly properties (#665)

* Improve support for handling multipart form data (#666)

* use pdfblock to test multipart form data

* switch back to cors proxy

* add handler for generic key-value payload

* debug response content type

* refactor to download media and file content types

* switch back to petstore
* Introduce clean function for escaping headers and descriptions

* Remove escape from codeblocks

* Add typing to sidebar generation

* Update Docusaurus dependencies in packages

* Use improved TypeScript support of Docusaurus for demo

* Update tests
* TypeScript refactor ApiCodeBlock

* TypeScript refactor Tabs

* TypeScript refactor components

* Add inline code to clean method

* TypeScript refactor items

* Test ClientWidth arrows, update flatten TabChildren

* Lint fixes

* Fix Sidebar prettier and typing issues

* Fix greedy curly bracket escape
@lucasassisrosa
Copy link
Contributor

lucasassisrosa commented Jan 16, 2024

@sserrata can we include Callbacks Support in V3, please?

@lucasassisrosa
Copy link
Contributor

@sserrata can we include Callbacks Support in V3, please?

https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/700/files

* Add Callbacks support (#691)

* add support to callbacks in openapi specs

* set package manager in package json

* implement operations as tabs within request panel

* render callbacks below Request and Responses

* remove unwanted files

* rename create file

* restore json settings

* convert OperationTabs to typescript

* fix linter

* fix warning on lint order
jlvandenhout and others added 7 commits March 28, 2024 10:52
* Make docs plugin configurable

* Update README
* update vscode

* ensure cleanup of sidebars.ts and switch to recursive delete schemas
* add option to disable frontmatter openapi snippet compression

* disable compression for petstore

* explicitly check for true

* handle both compressed and uncompression api prop
@ElliotFriend
Copy link
Contributor

ElliotFriend commented May 30, 2024

Hi, there @sserrata!

I know the question of "when v3" has been asked and answered, so I won't bug you with the same thing. I do, however, want to drop some more detailed questions:

  1. Is there a public roadmap or checklist of what remains to be done? Are any of the GH issues targeted for v3 or anything? Any major blockers at the moment? As you said, it's a "moving target," but I'm curious what work still lies ahead. Because...
  2. I'd love to help! What can I do to pitch in? We use the plugin for a few different software packages in our docs site, and we're (maybe too?) eager to migrate off of docusaurus v2. I'd be happy to contribute some time and effort to help out with the work. I've gotten pretty ok at the inner-workings of docusaurus, so I hope I might be able to lend a hand.

P.S. The most recent commit, 23c8c01, doesn't seem to have generated a canary/beta release, from what I can tell. (Edit: Scratch that, it probably doesn't really have any need to be a released version, since it's just a change in the demo?)

htmlin and others added 20 commits June 17, 2024 13:45
* introduce x-tags onto SchemaObject type, and revise sidebar types

A few of the types in the `sidebars/index.ts` page have been changed
to allow for more proper typing of both api items and schema items.

* add schemas with x-tags into the tag category sidebar slice

* add schemas with x-tags even if showSchemas is not true

* add a badge and some styling for schema sidebar labels

* add some test coverage

* add some x-tags documentation to `sidebars.md`

* update documentation on styling sidebar items

* include schema-only tags, just like operation-only ones

* add the pet x-tag to the Cat schema for demo purposes

* filter out x-tagged schemas from the "Schemas" category

they'll already be displayed elsewhere
* add missing export type declaration for setAccept

* fix setAccept import

* uncomment setAccept and setContentType actions
* Rearrange Schemas category from each tagGroup category

This commit takes the first tagGroup category's Schema category,
adds it to the very end of the sidebarSlice, and deletes the Schema
category from all the (now sibling) tagGroup categories.

Closes #836

* add a schema object to the Restaurant specfile

* show schemas in the restaurant demo API

* add documentation to sidebars.md
* support downloadUrl for versions

* demonstrate version downloadUrl
* add function for merging user and predefined language sets

* cleanup and implement new merge function

* cleanup console logging

* formatting cleanup

* allow overriding variants

* limit python variants to requests

* reorder language tabs
* use abs url path for petstore download url

* update isURL function to support abs path

* formatting

* revert isURL and support relative or abs downloadUrl path
@sserrata sserrata closed this Jul 3, 2024
@sserrata sserrata deleted the v3.0.0 branch July 3, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet