forked from loafle/openapi-generator-original
[html2] Support alias types (#18579)
* [html2] Support alias models to render html docs. * [html2] Fix compile error * [html2] Update sample
This commit is contained in:
@@ -1017,6 +1017,7 @@ ul.nav-tabs {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
var errs = {};
|
||||
</script>
|
||||
|
||||
@@ -1560,11 +1561,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -1622,11 +1625,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -2043,11 +2048,13 @@ Pet id to delete
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -2452,11 +2459,13 @@ Status values that need to be considered for filter
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -2514,11 +2523,13 @@ Status values that need to be considered for filter
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -2923,11 +2934,13 @@ Tags to filter by
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -2985,11 +2998,13 @@ Tags to filter by
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -3400,11 +3415,13 @@ ID of pet to return
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -3462,11 +3479,13 @@ ID of pet to return
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -3524,11 +3543,13 @@ ID of pet to return
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -3992,11 +4013,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -4054,11 +4077,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -4116,11 +4141,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -4178,11 +4205,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -4634,11 +4663,13 @@ Updated status of the pet
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -5115,11 +5146,13 @@ file to upload
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -5463,11 +5496,13 @@ ID of the order that needs to be deleted
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -5525,11 +5560,13 @@ ID of the order that needs to be deleted
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -5895,11 +5932,13 @@ pub fn main() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -6270,11 +6309,13 @@ ID of pet that needs to be fetched
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -6332,11 +6373,13 @@ ID of pet that needs to be fetched
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -6394,11 +6437,13 @@ ID of pet that needs to be fetched
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -6794,11 +6839,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -6856,11 +6903,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -7274,11 +7323,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -7692,11 +7743,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -8110,11 +8163,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -8495,11 +8550,13 @@ The name that needs to be deleted
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -8557,11 +8614,13 @@ The name that needs to be deleted
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -8929,11 +8988,13 @@ The name that needs to be fetched. Use user1 for testing.
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -8991,11 +9052,13 @@ The name that needs to be fetched. Use user1 for testing.
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -9053,11 +9116,13 @@ The name that needs to be fetched. Use user1 for testing.
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -9491,11 +9556,13 @@ The password for login in clear text
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -9581,11 +9648,13 @@ The password for login in clear text
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -9925,11 +9994,13 @@ pub fn main() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -10381,11 +10452,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
@@ -10443,11 +10516,13 @@ $(document).ready(function() {
|
||||
}
|
||||
if (schema.$ref != null) {
|
||||
schema = defsParser.$refs.get(schema.$ref);
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
if (schema.properties != null) {
|
||||
Object.keys(schema.properties).forEach( (item) => {
|
||||
if (schema.properties[item].$ref != null) {
|
||||
schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (schema.items != null && schema.items.$ref != null) {
|
||||
schema.items = defsParser.$refs.get(schema.items.$ref);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user