Skip to content

How to read from string? #362

Open
Open
@luckydonald

Description

@luckydonald

I couldn't find a way to read from a string, without spamming a temporary file.

from openapi_spec_validator import validate

schema_text = """{"openapi": "3.0.0"}"""

schema: Schema = ???(schema_text)

validate(schema)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions