mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(public-api): Create correct OAuth2 credential schema (#4111)
This commit is contained in:
@@ -220,7 +220,7 @@ export function toJsonSchema(properties: INodeProperties[]): IDataObject {
|
||||
},
|
||||
},
|
||||
then: {
|
||||
oneOf: [],
|
||||
allOf: [],
|
||||
},
|
||||
else: {
|
||||
allOf: [],
|
||||
@@ -228,7 +228,7 @@ export function toJsonSchema(properties: INodeProperties[]): IDataObject {
|
||||
};
|
||||
}
|
||||
|
||||
propertyRequiredDependencies[dependantName].then?.oneOf.push({ required: [property.name] });
|
||||
propertyRequiredDependencies[dependantName].then?.allOf.push({ required: [property.name] });
|
||||
propertyRequiredDependencies[dependantName].else?.allOf.push({
|
||||
not: { required: [property.name] },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user