import logging

from rest_framework import serializers, exceptions

logger = logging.getLogger(__name__)

class ResourceTypeSerializer(serializers.Serializer):
    '''
    Serializer for describing the types of available Resources
    that users may choose.
    '''
    resource_type_key = serializers.CharField(max_length=50)
    resource_type_title = serializers.CharField(max_length=250)
    resource_type_description = serializers.CharField(max_length=2000)
    example = serializers.JSONField()
import logging

from rest_framework import serializers, exceptions

logger = logging.getLogger(__name__)

class ResourceTypeSerializer(serializers.Serializer):
    '''
    Serializer for describing the types of available Resources
    that users may choose.
    '''
    resource_type_key = serializers.CharField(max_length=50)
    resource_type_title = serializers.CharField(max_length=250)
    resource_type_description = serializers.CharField(max_length=2000)
    example = serializers.JSONField()
Serializer for describing the types of available Resources     that users may choose.