Skip to content

v1.0.0

Choose a tag to compare

@taion taion released this 25 Mar 21:13
· 135 commits to master since this release
v1.0.0
c60c859
  • Breaking: Revamp upsert support (#314)
    • Add GenericModelView.upsert and remove create_missing in GenericModelView.update
      • Unlike GenericModelView.update with create_missing, GenericModelView.upsert will call ModelView.create_item if there is no existing item, rather than calling ModelView.update_item on a stub item
      • GenericModelView.upsert returns 201 if it creates a new item
    • Rename create_missing option to create_transient_stub and rename ModelView.create_missing_item to ModelView.create_stub_item, to make it more clear what this functionality is supposed to do
  • Breaking: Return 200 with item instead of 204 in GenericModelView.update (#314)
    • Remove the return_content option that previously enabled this behavior
  • Bugfix: Make objects keyword-only in ModelView.flush (#325)