File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/settings-library/src/settings_library Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11#
2- # NOTE: This files copies some of the types from models_library.basic_types
2+ # NOTE: This file copies some of the types from models_library.basic_types
33# This is a minor evil to avoid the maintenance burden that creates
44# an extra dependency to a larger models_library (intra-repo library)
55
@@ -59,3 +59,9 @@ class IDStr(ConstrainedStr):
5959 strip_whitespace = True
6060 min_length = 1
6161 max_length = 50
62+
63+
64+ # https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Registered_ports
65+ class RegisteredPortInt (ConstrainedInt ):
66+ gt = 1024
67+ lt = 65535
Original file line number Diff line number Diff line change 1- from models_library .basic_types import RegisteredPortInt
21from pydantic import AnyUrl , Field
2+ from settings_library .basic_types import RegisteredPortInt
33
44from .base import BaseCustomSettings
55
You can’t perform that action at this time.
0 commit comments