flask_restx_marshmallow.schema
¤
schemas of flask_restx_marshmallow.
InternalServerErrorSchema
¤
InternalServerErrorSchema(
header_fields: Iterable[str] | None = None,
**kwargs: Unpack[SchemaInitKwargs],
)
Bases: Schema
Internal Server Error Schema.
Response schema.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Iterable[str] | None
|
fields in response header |
None
|
|
Unpack[SchemaInitKwargs]
|
keyword arguments |
{}
|
Source code in flask_restx_marshmallow/schema.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
Meta
¤
Meta for response schema.
copy_body_fields
¤
copy_body_fields() -> Schema
Return a copy of this schema with response body fields.
Source code in flask_restx_marshmallow/schema.py
50 51 52 53 54 55 56 57 58 59 60 61 |
|
copy_header_fields
¤
copy_header_fields() -> Schema
Return a copy of this schema with response header fields.
Source code in flask_restx_marshmallow/schema.py
63 64 65 66 67 68 69 70 71 72 73 |
|
copy_simple_string_field
¤
copy_simple_string_field() -> String | None
Return a copy of this schema with simple string fields.
Source code in flask_restx_marshmallow/schema.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
Schema
¤
Schema(
header_fields: Iterable[str] | None = None,
**kwargs: Unpack[SchemaInitKwargs],
)
Bases: Schema
Response schema.
Response schema.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Iterable[str] | None
|
fields in response header |
None
|
|
Unpack[SchemaInitKwargs]
|
keyword arguments |
{}
|
Source code in flask_restx_marshmallow/schema.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
Meta
¤
Meta for response schema.
copy_body_fields
¤
copy_body_fields() -> Schema
Return a copy of this schema with response body fields.
Source code in flask_restx_marshmallow/schema.py
50 51 52 53 54 55 56 57 58 59 60 61 |
|
copy_header_fields
¤
copy_header_fields() -> Schema
Return a copy of this schema with response header fields.
Source code in flask_restx_marshmallow/schema.py
63 64 65 66 67 68 69 70 71 72 73 |
|
copy_simple_string_field
¤
copy_simple_string_field() -> String | None
Return a copy of this schema with simple string fields.
Source code in flask_restx_marshmallow/schema.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
UnprocessableEntitySchema
¤
UnprocessableEntitySchema(
header_fields: Iterable[str] | None = None,
**kwargs: Unpack[SchemaInitKwargs],
)
Bases: Schema
Unprocessable Entity Schema.
Response schema.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Iterable[str] | None
|
fields in response header |
None
|
|
Unpack[SchemaInitKwargs]
|
keyword arguments |
{}
|
Source code in flask_restx_marshmallow/schema.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
Meta
¤
Meta for response schema.
copy_body_fields
¤
copy_body_fields() -> Schema
Return a copy of this schema with response body fields.
Source code in flask_restx_marshmallow/schema.py
50 51 52 53 54 55 56 57 58 59 60 61 |
|
copy_header_fields
¤
copy_header_fields() -> Schema
Return a copy of this schema with response header fields.
Source code in flask_restx_marshmallow/schema.py
63 64 65 66 67 68 69 70 71 72 73 |
|
copy_simple_string_field
¤
copy_simple_string_field() -> String | None
Return a copy of this schema with simple string fields.
Source code in flask_restx_marshmallow/schema.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|