Skip to content

Silent config failure #37

@blopker

Description

@blopker

Hey! I'm was trying to get a good handle on loco.rs and this tripped me up for a bit, so I wanted to report it.

I was trying to us the Scalar UI with this config:

initializers:
  openapi:
    scalar:
      url: /scalar

And nothing was happening. /scalar was just giving me a 404. Sadly, there was no feedback or anything to help guide me, so I just tried moving code over from the example and finally got it working with all the UI options defined:

# Full config required even if only using one UI
initializers:
  openapi:
    redoc:
      url: /redoc
    scalar:
      url: /scalar
    swagger:
      spec_json_url: /api-docs/openapi.json

This worked. Anyway, this seems like a bug? At the least it feels like it shouldn't fail silently?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions