[json] support result limits

This commit is contained in:
Martin Aeschlimann
2019-10-28 20:23:06 +01:00
parent e42b3d1781
commit 223076ac54
4 changed files with 72 additions and 19 deletions

View File

@@ -46,6 +46,7 @@ interface Settings {
json?: {
schemas?: JSONSchemaSettings[];
format?: { enable: boolean; };
resultLimit?: number;
};
http?: {
proxy?: string;
@@ -320,6 +321,7 @@ function getSettings(): Settings {
},
json: {
schemas: [],
resultLimit: 5000
}
};
let schemaSettingsById: { [schemaId: string]: JSONSchemaSettings } = Object.create(null);