The traindhandler forms URI fields and url fields use the vuelidate url validator:
|
name: 'uri', |
|
label: 'URI', |
|
rules: { required, url }, |
This validator requires the presence of a top level domain, i.e. a dot ., followed by two or more characters.
Unfortunately, this excludes the use of e.g. http://localhost:8080.
(note that the port is allowed by the validator, but there is no top level domain)
As a result, we cannot specify a localhost endpointUrl for local testing.
When running from source, we can disable the validator temporarily, but that is not an option when running in a local docker container, e.g. in FDS-demo-deployment.
The traindhandler forms URI fields and url fields use the vuelidate url validator:
TrainHandler-client/pages/stations/add.vue
Lines 24 to 26 in 517d6b5
This validator requires the presence of a top level domain, i.e. a dot
., followed by two or more characters.Unfortunately, this excludes the use of e.g.
http://localhost:8080.(note that the port is allowed by the validator, but there is no top level domain)
As a result, we cannot specify a localhost
endpointUrlfor local testing.When running from source, we can disable the validator temporarily, but that is not an option when running in a local docker container, e.g. in FDS-demo-deployment.