-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't update subscription with default values #39
Labels
bug
Something isn't working
Comments
update_registration has same issue. |
@dnikolay-ebc which version of the library are you currently using? |
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. 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 |
tstorek
added a commit
that referenced
this issue
Oct 8, 2021
…ult-values fix: include defaults in subscription update closes #39
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
Resolve "refactor sphinx" Closes RWTH-EBC#39 See merge request EBC/EBC_all/fiware/filip!37
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
dnikolay-ebc
pushed a commit
to dnikolay-ebc/FiLiP
that referenced
this issue
Dec 10, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Method update_subscription of filip.clients.ngsi_v2.ContextBrokerClient has following configuration for request serialization:
If a subscription is created/updated with non default values you can never re-set the default ones because defaults are excluded from serialization.
To Reproduce
Steps to reproduce the behavior:
As an example try to update the status of a subscription:
→ subscription updates status to "inactive"
→ subscription still has status "inactive"
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: