-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
The mandatory fields don't appear in the generated swagger file when using the CLI. This YANG model:
rpc system-ping {
input {
leaf destination {
mandatory true;
type union {
type inet:domain-name;
type inet:ip-address-no-zone;
}
description
"Destination being pinged.";
}
leaf packet-size {
type uint32;
description
"Ping packet (data) size";
}
}
produces the following:
system.systemping.Input:
type: "object"
properties:
packet-size:
type: "integer"
format: "int64"
description: "Ping packet (data) size"
destination:
type: "string"
description: "Destination being pinged."
but it should produce the following:
system.systemping.Input:
type: "object"
required: # <--- List the required properties here
- destination
properties:
packet-size:
type: "integer"
format: "int64"
description: "Ping packet (data) size"
destination:
type: "string"
description: "Destination being pinged."
Edit: Changed wording from question to statement.