Skip to content

Commit

Permalink
propagate doc comments to api specs
Browse files Browse the repository at this point in the history
  • Loading branch information
rcgoodfellow committed May 2, 2024
1 parent 3534abf commit 31f7848
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion common/src/api/internal/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub struct BgpPeerConfig {
/// Apply a local preference to routes received from this peer.
#[serde(default)]
pub local_pref: Option<u32>,
/// Enforce that the first AS in paths recieved from this peer is the peer's AS.
/// Enforce that the first AS in paths received from this peer is the peer's AS.
#[serde(default)]
pub enforce_first_as: bool,
}
Expand Down
2 changes: 1 addition & 1 deletion nexus/types/src/external_api/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ pub struct BgpPeer {
/// Apply a local preference to routes received from this peer.
pub local_pref: Option<u32>,

/// Enforce that the first AS in paths recieved from this peer is the peer's AS.
/// Enforce that the first AS in paths received from this peer is the peer's AS.
pub enforce_first_as: bool,
}

Expand Down
6 changes: 3 additions & 3 deletions openapi/bootstrap-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
},
"checker": {
"nullable": true,
"description": "Checker to apply to incomming messages.",
"description": "Checker to apply to incoming messages.",
"default": null,
"type": "string"
},
Expand Down Expand Up @@ -347,7 +347,7 @@
"minimum": 0
},
"enforce_first_as": {
"description": "Enforce that the first AS in paths recieved from this peer is the peer's AS.",
"description": "Enforce that the first AS in paths received from this peer is the peer's AS.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -408,7 +408,7 @@
},
"remote_asn": {
"nullable": true,
"description": "Requre that a peer has a specified ASN.",
"description": "Require that a peer has a specified ASN.",
"default": null,
"type": "integer",
"format": "uint32",
Expand Down
6 changes: 3 additions & 3 deletions openapi/nexus-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,7 @@
},
"checker": {
"nullable": true,
"description": "Checker to apply to incomming messages.",
"description": "Checker to apply to incoming messages.",
"default": null,
"type": "string"
},
Expand Down Expand Up @@ -1586,7 +1586,7 @@
"minimum": 0
},
"enforce_first_as": {
"description": "Enforce that the first AS in paths recieved from this peer is the peer's AS.",
"description": "Enforce that the first AS in paths received from this peer is the peer's AS.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -1647,7 +1647,7 @@
},
"remote_asn": {
"nullable": true,
"description": "Requre that a peer has a specified ASN.",
"description": "Require that a peer has a specified ASN.",
"default": null,
"type": "integer",
"format": "uint32",
Expand Down
6 changes: 3 additions & 3 deletions openapi/nexus.json
Original file line number Diff line number Diff line change
Expand Up @@ -9493,7 +9493,7 @@
},
"checker": {
"nullable": true,
"description": "A checker program to apply to incomming open and update messages.",
"description": "A checker program to apply to incoming open and update messages.",
"type": "string"
},
"description": {
Expand Down Expand Up @@ -9632,7 +9632,7 @@
"minimum": 0
},
"enforce_first_as": {
"description": "Enforce that the first AS in paths recieved from this peer is the peer's AS.",
"description": "Enforce that the first AS in paths received from this peer is the peer's AS.",
"type": "boolean"
},
"hold_time": {
Expand Down Expand Up @@ -9685,7 +9685,7 @@
},
"remote_asn": {
"nullable": true,
"description": "Requre that a peer has a specified ASN.",
"description": "Require that a peer has a specified ASN.",
"type": "integer",
"format": "uint32",
"minimum": 0
Expand Down
6 changes: 3 additions & 3 deletions openapi/sled-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@
},
"checker": {
"nullable": true,
"description": "Checker to apply to incomming messages.",
"description": "Checker to apply to incoming messages.",
"default": null,
"type": "string"
},
Expand Down Expand Up @@ -1494,7 +1494,7 @@
"minimum": 0
},
"enforce_first_as": {
"description": "Enforce that the first AS in paths recieved from this peer is the peer's AS.",
"description": "Enforce that the first AS in paths received from this peer is the peer's AS.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -1555,7 +1555,7 @@
},
"remote_asn": {
"nullable": true,
"description": "Requre that a peer has a specified ASN.",
"description": "Require that a peer has a specified ASN.",
"default": null,
"type": "integer",
"format": "uint32",
Expand Down
6 changes: 3 additions & 3 deletions openapi/wicketd.json
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@
},
"checker": {
"nullable": true,
"description": "Checker to apply to incomming messages.",
"description": "Checker to apply to incoming messages.",
"default": null,
"type": "string"
},
Expand Down Expand Up @@ -886,7 +886,7 @@
"minimum": 0
},
"enforce_first_as": {
"description": "Enforce that the first AS in paths recieved from this peer is the peer's AS.",
"description": "Enforce that the first AS in paths received from this peer is the peer's AS.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -947,7 +947,7 @@
},
"remote_asn": {
"nullable": true,
"description": "Requre that a peer has a specified ASN.",
"description": "Require that a peer has a specified ASN.",
"default": null,
"type": "integer",
"format": "uint32",
Expand Down
6 changes: 3 additions & 3 deletions schema/rss-sled-plan.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"minimum": 0.0
},
"checker": {
"description": "Checker to apply to incomming messages.",
"description": "Checker to apply to incoming messages.",
"default": null,
"type": [
"string",
Expand Down Expand Up @@ -224,7 +224,7 @@
"minimum": 0.0
},
"enforce_first_as": {
"description": "Enforce that the first AS in paths recieved from this peer is the peer's AS.",
"description": "Enforce that the first AS in paths received from this peer is the peer's AS.",
"default": false,
"type": "boolean"
},
Expand Down Expand Up @@ -298,7 +298,7 @@
"type": "string"
},
"remote_asn": {
"description": "Requre that a peer has a specified ASN.",
"description": "Require that a peer has a specified ASN.",
"default": null,
"type": [
"integer",
Expand Down

0 comments on commit 31f7848

Please sign in to comment.