-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Implement additional format: byte #1055
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
Comments
@wing328 - not really sure what's missing.. |
@webron If you look at the folder containing the StringProperty.java, it has "DateTimeProperty.java" but no "ByteProperty.java" (both have type set to Line 90 in ee0b639
The above line checks In swagger-codegen, a response (type: string, format: byte) will always map to |
Fair enough. However, as mentioned in one of the codegen comments, |
I would recommend updating the comment section on Swagger Spec 2.0 Data Types to mention about Base64-encoded string for |
@wing328 - can you open an issue about it on swagger-spec? I want to make sure that this was indeed the intent. |
@webron shall we resume the conversation in OAI/OpenAPI-Specification#50 to confirm ? |
@wing328 - sure. That issue was originally opened for 1.2, but it applies to 2.0 just as well. |
I'm closing this out as it's a spec issue, and has a corresponding issue in that repo. |
Totally agree. |
Currently, byte (format) is treated as "string" and there's a TODO in StringProperty to implement additional formats.
swagger-core/modules/swagger-models/src/main/java/com/wordnik/swagger/models/properties/StringProperty.java
Line 88 in ee0b639
If no concern from anyone, I'll update the code to support byte as a property.
The text was updated successfully, but these errors were encountered: