@@ -7,7 +7,7 @@ use super::spec_extensions;
7
7
8
8
/// Allows configuration of the supported OAuth Flows.
9
9
///
10
- /// See <https://github.com/OAI/OpenAPI-Specification/blob/HEAD/versions/3 .1.0.md #oauth-flows-object>.
10
+ /// See <https://spec.openapis.org/oas/v3 .1.0#oauth-flows-object>.
11
11
#[ derive( Clone , Debug , Deserialize , Serialize , PartialEq ) ]
12
12
#[ serde( rename_all = "camelCase" ) ]
13
13
pub struct Flows {
@@ -31,14 +31,14 @@ pub struct Flows {
31
31
///
32
32
/// Only "x-" prefixed keys are collected, and the prefix is stripped.
33
33
///
34
- /// See <https://github.com/OAI/OpenAPI-Specification/blob/HEAD/versions/3 .1.0.md #specification-extensions>.
34
+ /// See <https://spec.openapis.org/oas/v3 .1.0#specification-extensions>.
35
35
#[ serde( flatten, with = "spec_extensions" ) ]
36
36
pub extensions : BTreeMap < String , serde_json:: Value > ,
37
37
}
38
38
39
39
/// Configuration details for a implicit OAuth Flow.
40
40
///
41
- /// See <https://github.com/OAI/OpenAPI-Specification/blob/HEAD/versions/3 .1.0.md #oauth-flow-object>.
41
+ /// See <https://spec.openapis.org/oas/v3 .1.0#oauth-flow-object>.
42
42
#[ derive( Clone , Debug , Deserialize , Serialize , PartialEq ) ]
43
43
#[ serde( rename_all = "camelCase" ) ]
44
44
pub struct ImplicitFlow {
@@ -63,14 +63,14 @@ pub struct ImplicitFlow {
63
63
///
64
64
/// Only "x-" prefixed keys are collected, and the prefix is stripped.
65
65
///
66
- /// See <https://github.com/OAI/OpenAPI-Specification/blob/HEAD/versions/3 .1.0.md #specification-extensions>.
66
+ /// See <https://spec.openapis.org/oas/v3 .1.0#specification-extensions>.
67
67
#[ serde( flatten, with = "spec_extensions" ) ]
68
68
pub extensions : BTreeMap < String , serde_json:: Value > ,
69
69
}
70
70
71
71
/// Configuration details for a password OAuth Flow.
72
72
///
73
- /// See <https://github.com/OAI/OpenAPI-Specification/blob/HEAD/versions/3 .1.0.md #oauth-flow-object>.
73
+ /// See <https://spec.openapis.org/oas/v3 .1.0#oauth-flow-object>.
74
74
#[ derive( Clone , Debug , Deserialize , Serialize , PartialEq ) ]
75
75
#[ serde( rename_all = "camelCase" ) ]
76
76
pub struct PasswordFlow {
@@ -94,7 +94,7 @@ pub struct PasswordFlow {
94
94
95
95
/// Configuration details for a client credentials OAuth Flow.
96
96
///
97
- /// See <https://github.com/OAI/OpenAPI-Specification/blob/HEAD/versions/3 .1.0.md #oauth-flow-object>.
97
+ /// See <https://spec.openapis.org/oas/v3 .1.0#oauth-flow-object>.
98
98
#[ derive( Clone , Debug , Deserialize , Serialize , PartialEq ) ]
99
99
#[ serde( rename_all = "camelCase" ) ]
100
100
pub struct ClientCredentialsFlow {
@@ -118,7 +118,7 @@ pub struct ClientCredentialsFlow {
118
118
119
119
/// Configuration details for a authorization code OAuth Flow.
120
120
///
121
- /// See <https://github.com/OAI/OpenAPI-Specification/blob/HEAD/versions/3 .1.0.md #oauth-flow-object>.
121
+ /// See <https://spec.openapis.org/oas/v3 .1.0#oauth-flow-object>.
122
122
#[ derive( Clone , Debug , Deserialize , Serialize , PartialEq ) ]
123
123
#[ serde( rename_all = "camelCase" ) ]
124
124
pub struct AuthorizationCodeFlow {
@@ -153,16 +153,16 @@ pub struct AuthorizationCodeFlow {
153
153
/// callback object is an expression, evaluated at runtime, that identifies a URL to use for the
154
154
/// callback operation.
155
155
///
156
- /// See <https://github.com/OAI/OpenAPI-Specification/blob/HEAD/versions/3 .1.0.md #callback-object>.
156
+ /// See <https://spec.openapis.org/oas/v3 .1.0#callback-object>.
157
157
#[ derive( Clone , Debug , Deserialize , Serialize , PartialEq , Default ) ]
158
158
pub struct Callback (
159
159
/// A Path Item Object used to define a callback request and expected responses.
160
- serde_json:: Value , // TODO: Add "Specification Extensions" https://github.com/OAI/OpenAPI-Specification/blob/HEAD/versions/3 .1.0.md #specificationExtensions}
160
+ serde_json:: Value , // TODO: Add "Specification Extensions" https://spec.openapis.org/oas/v3 .1.0#specificationExtensions}
161
161
) ;
162
162
163
163
// FIXME: Implement
164
164
// /// Allows configuration of the supported OAuth Flows.
165
- // /// https://github.com/OAI/OpenAPI-Specification/blob/HEAD/versions/3 .1.0.md #oauthFlowsObject
165
+ // /// https://spec.openapis.org/oas/v3 .1.0#oauthFlowsObject
166
166
// #[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Default)]
167
167
// pub struct OAuthFlows {
168
168
// }
0 commit comments