Lines Matching refs:schema
12 '''Removes nodes that should not be rendered from an API schema.
30 def DetectInlineableTypes(schema):
34 if not schema.get('types'):
40 stack = [schema]
51 for type_ in schema['types']:
57 def InlineDocs(schema):
60 types = schema.get('types')
75 schema['types'] = types_without_inline_doc
89 apply_inline(schema)
95 inlineable types from the parsed schema data.
97 def trim_and_inline(schema, is_idl=False):
98 '''Modifies an API schema in place by removing nodes that shouldn't be
99 documented and inlining schema types that are only referenced once.
101 if RemoveNoDocs(schema):
102 # A return of True signifies that the entire schema should not be
106 DetectInlineableTypes(schema)
107 InlineDocs(schema)
108 return schema
120 for schema in schemas:
121 # Schemas could consist of one API schema (data for a specific API file)
123 trim_and_inline(schema)