Open
Description
Feature parity with legacy SwaggerEditor@4:
- accept url
- accept local file
Out of scope, but consistency with SwaggerUI:
- generic list of args to pass as props
Additional context:
- CRA requires static files to be located in the
public/static
directory. - CRA accepts
env
flags, but theseenv
flags are set at build time and non-mutable afterwards. - Will likely to need to add code checks for supported env variables.
Notes:
- legacy
swagger-editor
only containsSWAGGER_FILE
ANDURL
env variables, with no other consideration ofswagger-ui
. - legacy
swagger-editor
implementation does not appear to be directly portable.
From readme in this PR, which enables the basic environment variable, #3200:
Building a Docker container with custom environment variables is not currently supported by SwaggerEditor. This is due to the inability of
npm
to handle scoped packages that are outside of the publicnpm
registry. In the case of SwaggerEditor,@swagger-api/apidom-ls
is a dependency currently only residing in Github packages. It is in the roadmap to make@swagger-api/apidom-ls
, as well as this version of SwaggerEditor, available in the publicnpm
registry.
Activity