Comments (4)
Perfect!
BTW, is configuration.spec.content not an option in this plugin?
Using directly Scalar I see two options spec.url and spec.content (for files),
will be the "content" option added in the future to load files directly ?
from scalar.
@jesuspaletaisl ! great report
https://github.com/scalar/scalar/blob/main/packages/docusaurus/src/index.ts#L24
this line will defs do it, we should just load it as text and pass it in :)
edit will get this fixed up!
from scalar.
I think you’re right, we should just pass the configuration and fetch the specification in the frontend.
Maybe there’s a reason we do this in the plugin @amritk? If we have to do it in the plugin, we chould use the fetchSpecFromUrl
helper: https://github.com/scalar/scalar/blob/main/packages/oas-utils/src/helpers/fetchSpecFromUrl.ts
from scalar.
no reason! We can change it @hanspagel
from scalar.
Related Issues (20)
- generate examples for nested objects
- improve search result quality HOT 1
- Use a callback to prefill authentication
- Wrong HTTP header for security schema HOT 1
- configure default client library
- Input text color for keplar theme dark mode HOT 1
- Side bar scroll when we scroll api documentation HOT 1
- Missing styling on markdown content HOT 6
- Wrong example response for array with items that use allOf HOT 9
- Nuxt: `css` is unknown file extension HOT 7
- Test request always uses default value even if another value is provided HOT 1
- In Hono Scalar pageTitle and JWT token are not set HOT 1
- docusaurus: doesn’t use full height HOT 2
- OpenAPI 3.1 webhooks are not displayed if x-tagGroups are used HOT 2
- Items in "More" dropdown aren't visible in dark mode HOT 3
- Schema with anyOf section that contains two objects is rendered invalid HOT 1
- Module not found: Missing "./entities/workspace/security" specifier in "@scalar/oas-utils" package HOT 3
- Styling of server inputs is missing HOT 1
- api reference: empty server variable value
- Enums do not render properly as api-client-url-variables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalar.