We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Related to: #75 (fixed by #78)
if the receiver type is interface{} and unmarshaling with UnmarshalYAML([]byte), it seems impossible to detect it is multiline string or object.
interface{}
UnmarshalYAML([]byte)
e.g. the value in https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v3.0/api-with-examples.yaml#L18 and the value in https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v3.0/api-with-examples.yaml#L51 have same type but the result of unmarshal is not same, they are defined as interface{} and former one should be unmarshaled to map[string]interface{}, later one should unmarshaled to string
value
map[string]interface{}
string
before #78, the passed bytes contains | at first character so we could detect it is string or object
|
is there any way to detect? (or, should revert the change?)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Related to: #75 (fixed by #78)
if the receiver type is
interface{}
and unmarshaling withUnmarshalYAML([]byte)
, it seems impossible to detect it is multiline string or object.e.g. the
value
in https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v3.0/api-with-examples.yaml#L18 and thevalue
in https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v3.0/api-with-examples.yaml#L51 have same type but the result of unmarshal is not same, they are defined asinterface{}
and former one should be unmarshaled tomap[string]interface{}
, later one should unmarshaled tostring
before #78, the passed bytes contains
|
at first character so we could detect it is string or objectis there any way to detect? (or, should revert the change?)
The text was updated successfully, but these errors were encountered: