Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Strings "true" and "false" are valid for boolean type #678

Closed
JuanAller opened this issue Jan 6, 2020 · 2 comments
Closed

Strings "true" and "false" are valid for boolean type #678

JuanAller opened this issue Jan 6, 2020 · 2 comments
Assignees
Milestone

Comments

@JuanAller
Copy link
Contributor

#%RAML 1.0 title: Sample API types: TestType: type: object properties: count?: integer flag?: boolean name?: string /test: post: body: application/json: type: TestType example: | { "count": 12, "flag": "false", "name": "Joe" }
field "flag" is boolean type, but example value is "false"

@JuanAller JuanAller changed the title String "true" and "false" is valid for boolean type String "true" and "false" are valid for boolean type Jan 6, 2020
@JuanAller JuanAller changed the title String "true" and "false" are valid for boolean type Strings "true" and "false" are valid for boolean type Jan 6, 2020
@eduardo-rubio
Copy link

AMF fails also with strings "true" and "false".
@jpbelang @jstoiko This issue should be solve using a property to prevent backward compatibility issues.

@jstoiko jstoiko added this to the 1.0.48 milestone Jan 7, 2020
jpbelang added a commit that referenced this issue Jan 9, 2020
@jpbelang
Copy link
Collaborator

The org.raml.strict_booleans property was added to solve this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants