fix example string generation for types with isBasicLatin pattern 64/93464/2
authorCmarada, Michal <michal.cmarada@pantheon.tech>
Tue, 27 Oct 2020 13:30:10 +0000 (14:30 +0100)
committerTomas Cere <tomas.cere@pantheon.tech>
Mon, 2 Nov 2020 13:29:01 +0000 (13:29 +0000)
commitd98190dabb7426b0fb484170e0058a42ea1ef981
treec4e4fc85f367f31e27876279ff4decad624f60c3
parent8b0d9295566c10239f7bec46f0d7701fcdcef59d
fix example string generation for types with isBasicLatin pattern

Generex generator fails to create example if pattern contains
{isBasicLatin} condition. The issue is fixed by replacing original
condition by range of allowed basic latin characters (0x00 - 0x7F).

JIRA: NETCONF-737
Signed-off-by: Cmarada, Michal <michal.cmarada@pantheon.tech>
Change-Id: I7bc5bf3621a40804122acd4604cfe8c132ffff24
restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/impl/DefinitionGenerator.java
restconf/sal-rest-docgen/src/test/java/org/opendaylight/controller/sal/rest/doc/impl/SwaggerObjectTest.java
restconf/sal-rest-docgen/src/test/resources/yang/string-types.yang [new file with mode: 0644]