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

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

Description

@JuanAller

#%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"

Activity

  1. changed the title [-]String "true" and "false" is valid for boolean type[/-] [+]String "true" and "false" are valid for boolean type[/+] on Jan 6, 2020
  2. changed the title [-]String "true" and "false" are valid for boolean type[/-] [+]Strings "true" and "false" are valid for boolean type[/+] on Jan 6, 2020
  3. eduardo-rubio commented on Jan 7, 2020

    @eduardo-rubio

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

  4. added this to the 1.0.48 milestone on Jan 7, 2020
  5. added a commit that references this issue on Jan 9, 2020
  6. jpbelang commented on Jan 16, 2020

    @jpbelang
    Contributor

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

  7. added a commit that references this issue on Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions