rbw / aiosnow

Asynchronous ServiceNow Library
MIT License
73 stars 12 forks source link

Schema inner meta #69

Closed rbw closed 4 years ago

rbw commented 4 years ago

This moves schema API 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()