You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="io-line">Defined in <ahref="" data-line="35" class="link-to-prism">projects/angular-odata/src/lib/schema/parsers/structured-type.ts:35</a></div>
191
+
<divclass="io-line">Defined in <ahref="" data-line="23" class="link-to-prism">projects/angular-odata/src/lib/schema/parsers/structured-type.ts:23</a></div>
192
192
</td>
193
193
</tr>
194
194
@@ -250,7 +250,7 @@ <h3 id="inputs">
250
250
</tr>
251
251
<tr>
252
252
<tdclass="col-md-4">
253
-
<divclass="io-line">Defined in <ahref="" data-line="35" class="link-to-prism">projects/angular-odata/src/lib/schema/parsers/structured-type.ts:35</a></div>
253
+
<divclass="io-line">Defined in <ahref="" data-line="23" class="link-to-prism">projects/angular-odata/src/lib/schema/parsers/structured-type.ts:23</a></div>
254
254
</td>
255
255
</tr>
256
256
@@ -276,7 +276,7 @@ <h3 id="inputs">
276
276
</tr>
277
277
<tr>
278
278
<tdclass="col-md-4">
279
-
<divclass="io-line">Defined in <ahref="" data-line="34" class="link-to-prism">projects/angular-odata/src/lib/schema/parsers/structured-type.ts:34</a></div>
279
+
<divclass="io-line">Defined in <ahref="" data-line="22" class="link-to-prism">projects/angular-odata/src/lib/schema/parsers/structured-type.ts:22</a></div>
280
280
</td>
281
281
</tr>
282
282
@@ -307,25 +307,13 @@ <h3 id="inputs">
307
307
StructuredTypeFieldOptions,
308
308
FieldParser,
309
309
EdmType,
310
-
JsonType as JsonSchemaType,
310
+
JsonSchemaType,
311
+
JsonSchemaOptions,
311
312
} from '../../types';
312
313
import { Objects, Strings, Types } from '../../utils';
313
314
import { ODataAnnotatable } from '../annotation';
314
315
import { ODataEnumTypeParser } from './enum-type';
315
-
316
-
// JSON SCHEMA
317
-
type JsonSchemaSelect<T> = Array<keyof T>;
318
-
type JsonSchemaCustom<T> = {
319
-
[P in keyof T]?: (schema: any, field: ODataStructuredTypeFieldParser<T[P]>) => any;
320
-
};
321
-
type JsonSchemaExpand<T> = { [P in keyof T]?: JsonSchemaOptions<T[P]> };
322
-
type JsonSchemaRequired<T> = { [P in keyof T]?: boolean };
323
-
export type JsonSchemaOptions<T> = {
324
-
select?: JsonSchemaSelect<T>;
325
-
custom?: JsonSchemaCustom<T>;
326
-
expand?: JsonSchemaExpand<T>;
327
-
required?: JsonSchemaRequired<T>;
328
-
};
316
+
import { JSONSchema7 } from 'json-schema';
0 commit comments