| 15:14 | mstenta[m] | Yea agreed - the change record would be a nice place for that info... www.drupal.org/node/3424710 |
| 15:14 | mstenta[m] | PS: It was merged into 11.x! 🎉 |
| 15:18 | mstenta[m] | Oh this... |
| 15:18 | mstenta[m] | > While Drupal Core now contains an API for generating these schemas for content entity types, site-wide schema generation in an end-user format (e.g., OpenAPI) is left to contrib and custom code. The openapi_jsonapi module uses this new functionality to provide an OpenAPI schema document for sites using JSON:API. |
| 15:18 | mstenta[m] | * code. The [openapi_jsonapi, * openapi_jsonapi](drupal.org/project/openapi_jsonapi) module |
| 16:25 | FarmerEd[m] | Will there be much change in schema for us? Or is that unknown yet? |
| 16:26 | symbioquine[m] | If I'm understanding correctly, it wouldn't change the JSON:API api itself, only how the schema for that api is served... |
| 16:27 | symbioquine[m] | So depending what you're doing, you might not even notice. i.e. if you're just reading/writing asset/log/quantity entities. |
| 16:28 | mstenta[m] | In other words, /api/asset/animal WILL NOT change but /api/asset/animal/resource/schema MIGHT |
| 16:29 | symbioquine[m] | But if you're doing things that need to be aware of which fields are available on an asset by reading the schema from /api/schema/... then you could be affected. |
| 16:29 | symbioquine[m] | * But if you're doing things that need to be aware of which fields are available on an asset (for example) by reading the schema from /api/schema/... then you could be affected. |
| 16:30 | mstenta[m] | This would be a documented breaking change in farmOS 4.x, but not 3.x |
| 16:31 | mstenta[m] | It's also possible that we KEEP the jsonapi_schema module in 4.x but deprecate it |
| 16:32 | symbioquine[m] | mstenta[m]: That seems like it might be smart - assuming openapi_jsonapi is significantly different. |
| 16:32 | mstenta[m] | Pending what happens in the ecosystem |
| 16:33 | symbioquine[m] | * That seems like it might be smart - assuming openapi_jsonapi (or whatever module we end up using) is significantly different. |
| 16:33 | mstenta[m] | The jsonapi_schema maintainers may refactor to use the new core functionality |
| 16:33 | symbioquine[m] | mstenta[m]: That would be great |
| 16:34 | mstenta[m] | Based on the change record it sounds like core is not adding endpoints itself |
| 16:38 | symbioquine[m] | I hope it fixes some of these things: github.com/symbioquine/farmOS_asset_link |
| 16:39 | mstenta[m] | Yea we're applying a bunch of patches to jsonapi_schema right now iirc 😅 |
| 16:40 | symbioquine[m] | Gotta run. Cy'all - happy Monday! |
| 16:40 | mstenta[m] | github.com/farmOS/farmOS/blob/b5a8324bb3 |
| 22:51 | * | farmBOT has joined |