export function parseSchemaExample()

in media/src/utils/parseAPIMetaDescription.ts [117:132]


export function parseSchemaExample(schema: SemixJsonSchema) {
  if (!schema) {
    return schema;
  }
  const newSchema = SemixJsonSchema.mapSchema(schema as any, (schema) => {
    if (schema.example) {
      return {
        ...schema,
        example: parseExample(schema.example),
      };
    }
    return schema;
  });

  return newSchema;
}