-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore: API Reference now uses Api Definition V2 #1608
Conversation
🌿 Preview your docs: https://fern-preview-c1038525-4b84-4f00-abbe-08b8818e3425.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-d600435e-e925-4e1e-9e8f-077b7b831ce9.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-eeda02f8-dab3-44ee-9acf-cc90446f3178.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-efb6f2b4-79c0-45c7-b1b1-5045a3872a0b.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-e9fde9ee-8e05-4d60-9ca6-ac75ee16c7e4.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-7676b8e1-b724-4126-83c4-7653f6c081f8.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-55f54397-4054-461a-8074-a4b0096eae57.docs.buildwithfern.com |
@@ -60,7 +60,7 @@ types: | |||
- commons.WithAvailability | |||
properties: | |||
key: rootCommons.PropertyKey | |||
valueShape: TypeReference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could this break any consumer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no it won't, all the consumers use unwrapReference
which accepts TypeShape | TypeReference
@@ -12,73 +12,73 @@ export type ExpectedCodeBlockChildren = { | |||
}; | |||
}; | |||
|
|||
export function stringHasMarkdown(s: string): boolean { | |||
s = s.trim(); | |||
// export function stringHasMarkdown(s: string): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we commenting this out instead of deleting? is the idea to bring this back?
didn't mean to auto merge this cause it would be valuable to understand the |
In this PR:
/api/fern-docs/resolve-api
endpointshape: TypeReference
toshape: TypeShape
because TypeShape is more flexible (allows you to specify TypeReference via analias
. This lets us unwrap websocket variants more smoothly.descriptions
field (but not in all cases)the following functionality has been commented out because it no longer works: