Skip to content

Add a constant holding core_schema.any_schema() value #785

@lig

Description

@lig

I would like the following code more but it will always call core_schema.any_schema()

        content_core_schema = schema.get('schema', core_schema.any_schema())

It would be nice to have a constant like core_schema.DEFAULT_SCHEMA that will hold this value and allow the above to be as efficient as if..in.

Originally posted by @lig in pydantic/pydantic#6715 (comment)

Selected Assignee: @lig

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions