| 605 | } |
| 606 | |
| 607 | JsonObjectValue *JsonSchema::resolveBase(JsonObjectValue *ov) const |
| 608 | { |
| 609 | if (JsonValue *v = ov->member(kExtends())) { |
| 610 | if (v->kind() == JsonValue::String) { |
| 611 | JsonSchema *schema = m_manager->schemaByName(v->toString()->value()); |
| 612 | if (schema) |
| 613 | return schema->rootValue(); |
| 614 | } else if (v->kind() == JsonValue::Object) { |
| 615 | return resolveReference(v->toObject()); |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | return 0; |
| 620 | } |
| 621 | |
| 622 | JsonStringValue *JsonSchema::getStringValue(const QString &name, JsonObjectValue *value) |
| 623 | { |
nothing calls this directly
no test coverage detected