Comments (3)
update_registration has same issue.
from filip.
@dnikolay-ebc which version of the library are you currently using?
from filip.
I tested with a small example:
from pydantic import BaseModel, Field
class Model(BaseModel):
test: str = Field(default='123')
model = Model(test='123')
print(model.json(exclude_defaults=True))
Does indeed skip the default although set, while
print(model.json(exclude_defaults=False))
would do the trick.
I am actually surprised by this behavior of pydantic.
We will correct this as soon as possible. However, this has to wait until #24 will be merged because this will probably come along with a breaking change
from filip.
Related Issues (20)
- Set default service name to '' in tests default config
- Change does_entity_exists create error message if entity does not exist HOT 2
- Inconsistent use if entity_type parameter HOT 2
- Service Group can not be retrieved by apikey and resource HOT 2
- Edit service group not work HOT 2
- ContextAttribute: wrong type conversion for value HOT 2
- prepare release v0.2.4 HOT 1
- Error on duplicate object_id HOT 3
- Possible bug in Filip's typePattern validation. HOT 4
- cb_client.post_subscription creates a new subscription even if the subscription already exists HOT 1
- get_attributes() will only return the attributes with the pre-defined attribute type HOT 1
- prepare release v0.2.5 HOT 1
- Make unit model hashable HOT 2
- false string matching `__getitem__` of Units HOT 1
- Warn about wrong orion version HOT 3
- Add name to KeyError HOT 1
- Can the installation of pandas/numpy be optimized/made optional HOT 10
- Migrate to pydantic v2 HOT 8
- Pydantic >2.0.* seems to result in problems HOT 1
- Support of `alterationTypes` in subscriptions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filip.