Skip to content

Commit e6077fc

Browse files
committed
feat: Allow extras on models.
1 parent 8638424 commit e6077fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+52
-52
lines changed

openapi_schema_pydantic/v3/v3_0_3/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Components(BaseModel):
4949
"""An object to hold reusable [Callback Objects](#callbackObject)."""
5050

5151
class Config:
52-
extra = Extra.ignore
52+
extra = Extra.allow
5353
schema_extra = {
5454
"examples": [
5555
{

openapi_schema_pydantic/v3/v3_0_3/contact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Contact(BaseModel):
2626
"""
2727

2828
class Config:
29-
extra = Extra.ignore
29+
extra = Extra.allow
3030
schema_extra = {
3131
"examples": [
3232
{"name": "API Support", "url": "http://www.example.com/support", "email": "[email protected]"}

openapi_schema_pydantic/v3/v3_0_3/discriminator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Discriminator(BaseModel):
2525
"""
2626

2727
class Config:
28-
extra = Extra.ignore
28+
extra = Extra.allow
2929
schema_extra = {
3030
"examples": [
3131
{

openapi_schema_pydantic/v3/v3_0_3/encoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Encoding(BaseModel):
6363
"""
6464

6565
class Config:
66-
extra = Extra.ignore
66+
extra = Extra.allow
6767
schema_extra = {
6868
"examples": [
6969
{

openapi_schema_pydantic/v3/v3_0_3/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Example(BaseModel):
3333
"""
3434

3535
class Config:
36-
extra = Extra.ignore
36+
extra = Extra.allow
3737
schema_extra = {
3838
"examples": [
3939
{"summary": "A foo example", "value": {"foo": "bar"}},

openapi_schema_pydantic/v3/v3_0_3/external_documentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ class ExternalDocumentation(BaseModel):
1919
"""
2020

2121
class Config:
22-
extra = Extra.ignore
22+
extra = Extra.allow
2323
schema_extra = {"examples": [{"description": "Find more info here", "url": "https://example.com"}]}

openapi_schema_pydantic/v3/v3_0_3/header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Header(Parameter):
1717
param_in = Field(default=ParameterLocation.HEADER, const=True, alias="in")
1818

1919
class Config:
20-
extra = Extra.ignore
20+
extra = Extra.allow
2121
allow_population_by_field_name = True
2222
schema_extra = {
2323
"examples": [

openapi_schema_pydantic/v3/v3_0_3/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Info(BaseModel):
4747
"""
4848

4949
class Config:
50-
extra = Extra.ignore
50+
extra = Extra.allow
5151
schema_extra = {
5252
"examples": [
5353
{

openapi_schema_pydantic/v3/v3_0_3/license.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ class License(BaseModel):
2020
"""
2121

2222
class Config:
23-
extra = Extra.ignore
23+
extra = Extra.allow
2424
schema_extra = {"examples": [{"name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html"}]}

openapi_schema_pydantic/v3/v3_0_3/link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class Link(BaseModel):
6363
"""
6464

6565
class Config:
66-
extra = Extra.ignore
66+
extra = Extra.allow
6767
schema_extra = {
6868
"examples": [
6969
{"operationId": "getUserAddressByUUID", "parameters": {"userUuid": "$response.body#/uuid"}},

0 commit comments

Comments
 (0)