-
Story
-
Resolution: Unresolved
-
Medium
-
None
-
None
-
None
As it was mentioned in CPS-125 the YANG specification recommends naming convention
for YANG resources (RFC-6020#5.2), however it's not a strict requirement.
As result there could be case when same resource is being uploaded several times by various consumers under different names, but the very first resource name will be persisted in database.
While resource name has no actual impact on functionality the unexpected name of resource may confuse on data analysis and/or troubleshooting. Considered yang resource name to be normalized to format recommended by the specification.
The name normalization should be performed after validation in order to have original resource names for error messages (if validation fails).
Acceptance criteria:
- utility method (performing name normalization to recommended format using resource content)
- CpsModuleServiceImpl.createSchemaSet() method updated to perform resource names normalization
- test coverage for both utility method and the service's createSchemaSet method
- is blocked by
-
CPS-123 Schema Set add using REST API and Java API incl. validation
- Closed