Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change HttpUrl to allow for calling rest url's where we dont have TLD #46

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

jNormaster
Copy link
Contributor

We have scenarios where the url's for model index api & opc ua rest values api does not contain the Top level domain. This pull request changes Pydantic HttpUrl to AnyUrl in all files where its needed.

From pydantic;
AnyUrl: any scheme allowed, top-level domain (TLD) not required, host required.

HttpUrl: scheme http or https, TLD required, host required, max length 2083.

Copy link
Contributor

@MeenaBana MeenaBana left a comment

Choose a reason for hiding this comment

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

I have tested changes in your branch and it looks good to me.

@jNormaster jNormaster merged commit 7bae0d5 into main Sep 22, 2023
6 checks passed
@jNormaster jNormaster deleted the jn/changeToUseAnyURL branch September 22, 2023 11:34
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.

None yet

2 participants