Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add documentation and other annotations? #63

Open
rattrayalex opened this issue Aug 27, 2021 · 0 comments
Open

Can you add documentation and other annotations? #63

rattrayalex opened this issue Aug 27, 2021 · 0 comments

Comments

@rattrayalex
Copy link

Is it possible to do something like this?

foo: joi.string().meta({title: "Foo", description: "This is a foo", "x-myattribute": true})

// convert into:
foo: 
  type: 'string'
  title: 'Foo' 
  description: 'This is a foo'
  x-myattribute: true

I want to use title, description, and custom annotations for openapi via joi-to-openapi-definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant