예제 #1
0
class CarParkSerializer(PbNestedSerializer):
    available = jsonschema.IntField()
    occupied = jsonschema.IntField()
    available_PRM = jsonschema.IntField()
    occupied_PRM = jsonschema.IntField()
    total_places = jsonschema.IntField()
예제 #2
0
 class Custom(serpy.Serializer):
     bob = jsonschema.IntField()
예제 #3
0
파일: pt.py 프로젝트: vmulard/navitia
class StandsSerializer(PbNestedSerializer):
    available_places = jsonschema.IntField()
    available_bikes = jsonschema.IntField()
    total_stands = jsonschema.IntField()