Skip to content

swagger-validator: implement mime validator#4

Open
mpastern wants to merge 3 commits into
masterfrom
implement-mime-validator
Open

swagger-validator: implement mime validator#4
mpastern wants to merge 3 commits into
masterfrom
implement-mime-validator

Conversation

@mpastern

Copy link
Copy Markdown

No description provided.

@mpastern

Copy link
Copy Markdown
Author

@liorhar @tarlog

@mpastern mpastern force-pushed the implement-mime-validator branch from 8ee646b to 1fe4061 Compare March 24, 2015 10:41

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to check if method is annotated with annotation of HttpMethod. You may have other methods (HEAD, OPTIONS, PATCH, etc.)
See the implementation of ResourceValidator.isOperationAnnotatedMethodExists
Maybe you can also reuse some code.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done,

thanks.

we should identify jax-rs methods using HttpMethod rather
than specific GET/POST/etc.
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

Successfully merging this pull request may close these issues.

2 participants