Skip to content

Handle models with v[0-9] in name when loading them#2002

Merged
skarimo merged 1 commit intomasterfrom
sherz/fix-loading-v3-models
Sep 11, 2024
Merged

Handle models with v[0-9] in name when loading them#2002
skarimo merged 1 commit intomasterfrom
sherz/fix-loading-v3-models

Conversation

@skarimo
Copy link
Copy Markdown
Member

@skarimo skarimo commented Sep 11, 2024

Previous implementation did not support models such as:

datadog_api_client/v2/models/entity_v3.rb

Since it was looking for the last occurrence of the regex /v[0-9]/.

This PR safe guards against such cases in the future and ensures we are explicitly looking for datadog_api_client\/(v[0-9])\/

Closes: #1991

@skarimo skarimo requested a review from a team as a code owner September 11, 2024 17:29
@skarimo skarimo changed the title Handle models with v[0-9] in name Handle models with v[0-9] in name when loading them Sep 11, 2024
@skarimo skarimo merged commit b25cb81 into master Sep 11, 2024
@skarimo skarimo deleted the sherz/fix-loading-v3-models branch September 11, 2024 17:45
github-actions bot pushed a commit that referenced this pull request Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autoloading issue with class in new version 2.26.0

2 participants