Skip to content

Commit

Permalink
Merge branch 'main' into rc/1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jayckaiser authored Aug 18, 2023
2 parents 0c2a36a + 2bd4e07 commit dc1ad6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# edfi_api_client v1.0.0
# edfi_api_client v0.2.0
## New Features
- `EdFiClient.get_swagger()` now returns an EdFiSwagger class that parses OpenAPI Swagger specification.
- `EdFiClient.resources` and `EdFiClient.descriptors` lazily retrieves lists of respective endpoints from Swagger.
- `EdFiEndpoint` child class attributes `description` and `has_deletes` lazily retrieves this metadata from Swagger.

## Under the hood
- Requests re-authenticate automatically, based on the expiration-time retrieved from the API.


# edfi_api_client v0.1.4
## Fixes
- Compatibility fix for Ed-Fi 6.0: casing changed for change version API responses


# edfi_api_client v0.1.2
## New features
Expand Down
4 changes: 3 additions & 1 deletion edfi_api_client/edfi_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ def get_newest_change_version(self) -> int:
)
raise HTTPError(http_error_msg, response=res)

return res.json()['NewestChangeVersion']
# Ed-Fi 6.0 changes the key from `NewestChangeVersion` to `newestChangeVersion`.
lower_json = {key.lower(): value for key, value in res.json().items()}
return lower_json['newestchangeversion']


@require_session
Expand Down

0 comments on commit dc1ad6e

Please sign in to comment.