Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

472
Visualizações
Where do I set the validatorURL flag to NULL in the swagger.json for my Swagger UI docs?

I created Swagger UI docs using Swagger Editor for my APIs which are hosted on a private AWS EC2 instance. The VM is private and Swagger isn't able to validate my URL and hence I'm getting this error on my Swagger UI webpage:

{"schemaValidationMessages":[{"level":"error","message":"Can't read from file https://xx.xx.xxx.xx:9001/static/swagger.json"}]}

I converted the YAML that got generated from Swagger Editor into swagger.json and used the flask_swagger_ui Python library to link the swagger.json with my API code. This swagger.json is the only Swagger-related file I have and I didn't use any .html or .config files. I realised if I set ValidatorURL: null then the abovementioned error will stop but where do I add that flag/parameter in the swagger.json (Swagger YAML design) file? Other resources mention adding ValidatorURL: null in the .html file but I don't have any such file. What do I do?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

validatorUrl is a Swagger UI config option. In flask_swagger_ui, you can set this option as follows:

swaggerui_blueprint = get_swaggerui_blueprint(
    SWAGGER_URL,
    API_URL,
    config={
        'validatorUrl': 'none'
    },
    ...
)
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda