Skip to content

Could not resolve reference Error #616

Answered by juhaku
Sirneij asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,

How does your api doc type derived from OpenApi look? You need to register the schema with #[openapi(components(schemas(EditorContent)))] to get it working.

#[derive(OpenApi)]
#[openapi(
  paths(compile_markdown_and_return_value)
  components(
    schemas(EditorContent)
  )
)]
struct ApiDoc;

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Sirneij
Comment options

@juhaku
Comment options

Answer selected by Sirneij
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants