Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opensilecs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
silecs
opensilecs
Commits
c3fe6d2b
Commit
c3fe6d2b
authored
7 years ago
by
al.schwinn
Committed by
al.schwinn
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Restrictions for fesa-device-name to strict (
#44
)
parent
2b1a43ab
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
silecs-model/src/xml/DeploySchema.xsd
+19
-2
19 additions, 2 deletions
silecs-model/src/xml/DeploySchema.xsd
with
19 additions
and
2 deletions
silecs-model/src/xml/DeploySchema.xsd
+
19
−
2
View file @
c3fe6d2b
...
...
@@ -579,14 +579,31 @@
</xs:restriction>
</xs:simpleType>
<xs:simpleType
name=
"DeviceNameType"
>
<!-- Base type which just forbid characters not supported by the DB -->
<xs:simpleType
name=
"BaseType"
>
<xs:restriction
base=
"xs:string"
>
<xs:pattern
value=
"[^&<>"]*"
/>
</xs:restriction>
</xs:simpleType>
<!-- Type for named item which are not transformed into Cpp object -->
<xs:simpleType
name=
"NonIdentifierType"
>
<xs:restriction
base=
"BaseType"
>
<!-- forbid leading and trailing space characters -->
<xs:pattern
value=
"\S|(\S.*\S)"
/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType
name=
"DeviceNameType"
>
<xs:restriction
base=
"NonIdentifierType"
>
<xs:minLength
value=
"1"
/>
<xs:maxLength
value=
"30"
/>
<!-- In FESA the deviceName is restricted to max. 30 characters -->
<xs:pattern
value=
"[_A-Za-z][_A-Za-z0-9]*"
/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType
name=
"BothProtocolType"
>
<xs:restriction
base=
"xs:string"
>
<xs:enumeration
value=
"DEVICE_MODE"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment