rbw / aiosnow

Asynchronous ServiceNow Library
MIT License
73 stars 12 forks source link

Schema inner Meta #68

Closed rbw closed 4 years ago

rbw commented 4 years ago

This moves schema location assignment from Schema.__location__ to Schema.Meta.location. The Meta object is made available in Schema.snow_meta after registration.

class MySchema(Schema):
    class Meta:
        location = "/test"

    my_field = fields.Text()