Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: Boolean type is not strict #998

Open
Labels
kind/bugIndicates an issue
@afonsocraposo

Description

@afonsocraposo

Actual Behavior

I have this in my api spec:

"properties": {"active": {"type":"boolean"}}

If in my request body I pass:

{"active":"invalid"}

I get aCastError.

Expected Behavior

If in my request body I pass:

{"active":"invalid"}

I get anInvalidSchemaValue because the fieldactive is not of typeboolean.

Steps to Reproduce

Have a field of typeboolean. Pass ainvalid string in the request body.

OpenAPI Core Version

0.19.5

OpenAPI Core Integration

django

Affected Area(s)

No response

References

No response

Anything else we need to know?

No response

Would you like to implement a fix?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugIndicates an issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp