示例#1
0
def ill_request_schema(monkeypatch):
    """ILL requests JSONSchema for records."""
    schema_in_bytes = resource_string(
        'rero_ils.modules.ill_requests.jsonschemas',
        '/ill_requests/ill_request-v0.0.1.json')
    return get_schema(monkeypatch, schema_in_bytes)
示例#2
0
def notification_schema(monkeypatch):
    """Notifications Jsonschema for records."""
    schema_in_bytes = resource_string(
        'rero_ils.modules.notifications.jsonschemas',
        '/notifications/notification-v0.0.1.json')
    return get_schema(monkeypatch, schema_in_bytes)
示例#3
0
def holding_schema(monkeypatch):
    """Holdings Jsonschema for records."""
    schema_in_bytes = resource_string('rero_ils.modules.holdings.jsonschemas',
                                      '/holdings/holding-v0.0.1.json')
    return get_schema(monkeypatch, schema_in_bytes)
示例#4
0
def item_schema(monkeypatch):
    """Item Jsonschema for records."""
    schema_in_bytes = resource_string('rero_ils.modules.items.jsonschemas',
                                      'items/item-v0.0.1.json')
    return get_schema(monkeypatch, schema_in_bytes)
示例#5
0
def document_schema(monkeypatch):
    """Jsonschema for documents."""
    schema_in_bytes = resource_string('rero_ils.modules.documents.jsonschemas',
                                      'documents/document-v0.0.1.json')
    return get_schema(monkeypatch, schema_in_bytes)
示例#6
0
def contributions_schema(monkeypatch):
    """Patron Jsonschema for records."""
    schema_in_bytes = resource_string(
        'rero_ils.modules.contributions.jsonschemas',
        '/contributions/contribution-v0.0.1.json')
    return get_schema(monkeypatch, schema_in_bytes)
示例#7
0
def patron_transaction_event_schema(monkeypatch):
    """Patron transaction event Jsonschema for records."""
    schema_in_bytes = resource_string(
        'rero_ils.modules.patron_transaction_events.jsonschemas',
        'patron_transaction_events/patron_transaction_event-v0.0.1.json')
    return get_schema(monkeypatch, schema_in_bytes)