New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop autogenerating examples where we already have one #1384
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Stop autogenerating examples where we already have an example. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,11 @@ paths: | |
allOf: | ||
- $ref: "definitions/auth_data.yaml" | ||
example: { | ||
"auth": { | ||
"type": "example.type.foo", | ||
"session": "xxxxx", | ||
"example_credential": "verypoorsharedsecret" | ||
}, | ||
Comment on lines
+78
to
+82
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. again, this means that we still get an example for |
||
"master_key": { | ||
"user_id": "@alice:example.com", | ||
"usage": ["master"], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,6 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
type: object | ||
example: { | ||
"client_secret": "monkeys_are_GREAT", | ||
"email": "foo@example.com", | ||
"send_attempt": 1 | ||
} | ||
Comment on lines
-15
to
-19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is redundant (the individual fields all have examples), but also, this object is inherited elsewhere and this example was overriding the examples for the fields in the derived object. |
||
properties: | ||
client_secret: | ||
type: string | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,6 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
type: object | ||
example: { | ||
"client_secret": "monkeys_are_GREAT", | ||
"country": "GB", | ||
"phone_number": "07700900001", | ||
"send_attempt": 1 | ||
} | ||
Comment on lines
-15
to
-20
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
properties: | ||
client_secret: | ||
type: string | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,6 @@ paths: | |
The user\'s master cross-signing key. | ||
allOf: | ||
- $ref: ../client-server/definitions/cross_signing_key.yaml | ||
# FIXME: why isn't the doc generator picking up this example? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ... this was why. |
||
- example: { | ||
"user_id": "@alice:example.com", | ||
"usage": ["master"], | ||
|
@@ -102,7 +101,6 @@ paths: | |
The user\'s self-signing key. | ||
allOf: | ||
- $ref: ../client-server/definitions/cross_signing_key.yaml | ||
# FIXME: why isn't the doc generator picking up this example? | ||
- example: { | ||
"user_id": "@alice:example.com", | ||
"usage": ["self_signing"], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is so that we still get an example for
auth
.