openactive / models-php

PHP Models for the OpenActive Opportunity and Booking Specifications
MIT License
6 stars 8 forks source link

Update models to handle Numeric types #66

Closed nathansalter closed 3 years ago

nathansalter commented 3 years ago

This PR does a few things:

  1. Fixes #64 by adding a new Numeric type which accepts int|float|string (anything that passes is_numeric()) and casts to a string
  2. Regenerated the models from more recent versions of schema.org and the OA specification.
  3. Switches to using short-array syntax in the models
nathansalter commented 3 years ago

Being done as part of #73 instead