Skip to content

Commit 90e60d4

Browse files
Fixed isInstance generator conditions
1 parent 8b049fc commit 90e60d4

3 files changed

Lines changed: 2 additions & 16 deletions

File tree

okta/oAuth2ClaimConditions.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,3 @@ import ()
2323
type OAuth2ClaimConditions struct {
2424
Scopes []string `json:"scopes,omitempty"`
2525
}
26-
27-
func NewOAuth2ClaimConditions() *OAuth2ClaimConditions {
28-
return &OAuth2ClaimConditions{}
29-
}
30-
31-
func (a *OAuth2ClaimConditions) IsApplicationInstance() bool {
32-
return true
33-
}

okta/oAuth2Scope.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,3 @@ type OAuth2Scope struct {
3030
Name string `json:"name,omitempty"`
3131
System *bool `json:"system,omitempty"`
3232
}
33-
34-
func NewOAuth2Scope() *OAuth2Scope {
35-
return &OAuth2Scope{}
36-
}
37-
38-
func (a *OAuth2Scope) IsApplicationInstance() bool {
39-
return true
40-
}

openapi/generator/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ function isInstance(model) {
393393
model.modelName == "OAuth2Actor" ||
394394
model.modelName == "OAuth2Client" ||
395395
model.modelName == "OAuth2RefreshToken" ||
396+
model.modelName == "OAuth2ClaimConditions" ||
397+
model.modelName == "OAuth2Scope" ||
396398
model.modelName == "WebAuthnUserFactorProfile" ||
397399
model.modelName == "OAuth2ScopesMediationPolicyRuleCondition") {
398400
return false

0 commit comments

Comments
 (0)