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

Byte datatype #78

Closed
oligot opened this issue Nov 26, 2012 · 3 comments
Closed

Byte datatype #78

oligot opened this issue Nov 26, 2012 · 3 comments

Comments

@oligot
Copy link

oligot commented Nov 26, 2012

Hi,

I would like to have a small clarification about datatypes, as specified in the wiki page :
https://github.com/wordnik/swagger-core/wiki/datatypes
is the byte datatype a signed or unsigned one ?

Thanks,

Olivier

@Reggino
Copy link

Reggino commented Dec 29, 2012

A byte is 8 bits. How you interpret them is up to you.

But indeed: should the spec. prescribe how to encode and transfer a byte...? Should 1000 0001 be:
0x81
129
−126

It's all possible....

@psol
Copy link

psol commented Jan 7, 2013

Indeed all is possible, does that mean the service should be able to parse all these options?
I think it would be more reasonnable to decide on one representation… I like signed bytes which, to me, seem more coherent with the other numeric types defined in Swagger.

@webron
Copy link
Contributor

webron commented May 27, 2014

This is covered by OAI/OpenAPI-Specification#50

@webron webron closed this as completed May 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants