raml-org / raml-java-parser

(deprecated) A RAML parser based on SnakeYAML written in Java
Other
174 stars 121 forks source link

http status code cannot be outside of range 100-599 #264

Open michaelkwan opened 8 years ago

michaelkwan commented 8 years ago

If i wanted to define a proprietary API using http status code outside of 100-599, I m out of luck as the BaseRamlGrammar.java limits the range to be 100-599.

The online editor as well as the atom api-workbench does not seem to have this restriction. Is it possible to check if the range is within 000-999?

ValidationResult: Unexpected key '900'. Options are : Integer --

Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-114

michaelkwan commented 7 years ago

is there a way to override this grammar without changing the library code?

machaval commented 7 years ago

No is not but you can do a pull request ;)

On Wed, Sep 21, 2016 at 1:58 PM, Kwach notifications@github.com wrote:

is there a way to override this grammar without changing the library code?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/raml-org/raml-java-parser/issues/264#issuecomment-248675278, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGMeNtNda4TtqWXIosnX1dGcj4LlvBnks5qsWImgaJpZM4J3evF .

sichvoge commented 7 years ago

@michaelkwan can i ask you why you would want to go outside the HTTP standardized codes ranging from 100 - 599?

sichvoge commented 7 years ago

BTW, I couldn't find that the spec limits on the standardized codes, but I am just curious :)

LorenaSoledad commented 7 years ago

@sichvoge, I've just opened raml-org/raml-spec#609 in order to clarify this topic.

michaelkwan commented 7 years ago

@michaelkwan can i ask you why you would want to go outside the HTTP standardized codes ranging from 100 - 599?

We are interfacing with an external api that actually supports status code outside of this range

sichvoge commented 7 years ago

Thanks @michaelkwan. Please, can you make sure to mention your use case here?