(schema, obj)
| 416 | } |
| 417 | |
| 418 | function addSchemaInfoToExample(schema, obj) { |
| 419 | if (typeof obj !== 'object' || obj === null) { |
| 420 | return; |
| 421 | } |
| 422 | if (schema.title) { |
| 423 | obj['::TITLE'] = schema.title; |
| 424 | } |
| 425 | if (schema.description) { |
| 426 | obj['::DESCRIPTION'] = schema.description; |
| 427 | } |
| 428 | if (schema.xml?.name) { |
| 429 | obj['::XML_TAG'] = schema.xml?.name; |
| 430 | } |
| 431 | if (schema.xml?.wrapped) { |
| 432 | obj['::XML_WRAP'] = schema.xml?.wrapped.toString(); |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | function removeTitlesAndDescriptions(obj) { |
| 437 | if (typeof obj !== 'object' || obj === null) { |
no test coverage detected
searching dependent graphs…