Skip to content

Conversation

@kburke
Copy link
Contributor

@kburke kburke commented Mar 25, 2025

Initial addition of anticipated_complete_upload_month and anticipated_dataset_count fields for Upload.

Copy link
Member

@yuanzhou yuanzhou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kburke we'll need a bit tweaks:

  • SyntaxWarning: invalid escape sequence '\d'. I think you can either use raw string r or escape the \

  • Month validation is insufficient. 2025-13 or 2026-00 would pass the check. You may also use datetime.strptime(yearMonth, "%Y-%m") to validate directly. I think it throws an error if the date is invalid.

  • Add the new fields to OpenAPI/SmartAPI yaml, also for regenerating the SDK later.

yuanzhou and others added 3 commits April 1, 2025 11:11
…goryCaseValidation

Add case-check to sample_category validator, and use validators durin…
… YAML, added validation that month provided is between 1 and 12.
@kburke
Copy link
Contributor Author

kburke commented Apr 1, 2025

Pushed changes per review requests.

@yuanzhou yuanzhou merged commit 6444b98 into dev-integrate Apr 1, 2025
3 checks passed
@yuanzhou yuanzhou deleted the karlburke/AddUploadFields branch April 4, 2025 11:42
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.

3 participants