Skip to content

Conversation

@sajith
Copy link
Contributor

@sajith sajith commented Sep 3, 2024

Addresses #148.

We do not care for Python 3.8 anymore, so we can safely drop this
backward-compatibility library now.
These connection request files are based on Service Provisioning Data
Model Specification 1.0, so they should be V1.

https://sdx-docs.readthedocs.io/en/latest/specs/provisioning-api-1.0.html

Perhaps the older requests could be renamed V0?
Used `python -m json.tool <input> <output>`.
@sajith sajith linked an issue Sep 3, 2024 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Sep 3, 2024

Pull Request Test Coverage Report for Build 14041006767

Details

  • 142 of 164 (86.59%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.4%) to 81.864%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/sdx_datamodel/models/connection_request.py 142 164 86.59%
Totals Coverage Status
Change from base Build 13705279293: 0.4%
Covered Lines: 1634
Relevant Lines: 1996

💛 - Coveralls

sajith added 7 commits March 21, 2025 12:25
The idea is that we should be able to replace the old style
models.port.Port with the pydantic connection_request.Port.
EmailStr is enough for email validation
@sajith sajith marked this pull request as ready for review March 24, 2025 13:36
@sajith sajith requested a review from YufengXin March 24, 2025 13:36
@sajith
Copy link
Contributor Author

sajith commented Mar 24, 2025

I think this is ready for a round of review.

sajith added 3 commits March 24, 2025 11:32
PEP 585 made this a thing since Python 3.9. We no longer need to
import the typing module.
This seems to make mypy 1.11.2 is happy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Importing connection request data mutates it Invalid v1.0 format connection request

3 participants