[10:14:01] | <mstenta[m]> | Yea agreed - the change record would be a nice place for that info... https://www.drupal.org/node/3424710 |
[10:14:15] | <mstenta[m]> | PS: It was merged into 11.x! 🎉 |
[10:18:31] | <mstenta[m]> | Oh this... |
[10:18:32] | <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. |
[10:18:54] | <mstenta[m]> | * code. The [openapi_jsonapi, * openapi_jsonapi](https://drupal.org/project/openapi_jsonapi) module |
[11:25:53] | <FarmerEd[m]> | Will there be much change in schema for us? Or is that unknown yet? |
[11:26:42] | <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... |
[11:27:15] | <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. |
[11:28:32] | <mstenta[m]> | In other words, /api/asset/animal WILL NOT change but /api/asset/animal/resource/schema MIGHT |
[11:29:05] | <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. |
[11:29:06] | <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. |
[11:30:24] | <mstenta[m]> | This would be a documented breaking change in farmOS 4.x, but not 3.x |
[11:31:27] | <mstenta[m]> | It's also possible that we KEEP the jsonapi_schema module in 4.x but deprecate it |
[11:32:17] | <symbioquine[m]> | mstenta[m]: That seems like it might be smart - assuming openapi_jsonapi is significantly different. |
[11:32:32] | <mstenta[m]> | Pending what happens in the ecosystem |
[11:33:10] | <symbioquine[m]> | * That seems like it might be smart - assuming openapi_jsonapi (or whatever module we end up using) is significantly different. |
[11:33:22] | <mstenta[m]> | The jsonapi_schema maintainers may refactor to use the new core functionality |
[11:33:39] | <symbioquine[m]> | mstenta[m]: That would be great |
[11:34:00] | <mstenta[m]> | Based on the change record it sounds like core is not adding endpoints itself |
[11:38:45] | <symbioquine[m]> | I hope it fixes some of these things: https://github.com/symbioquine/farmOS_asset_link/blob/b5ac59dbf61726731b... |
[11:39:45] | <mstenta[m]> | Yea we're applying a bunch of patches to jsonapi_schema right now iirc 😅 |
[11:40:32] | <symbioquine[m]> | Gotta run. Cy'all - happy Monday! |
[11:40:55] | <mstenta[m]> | https://github.com/farmOS/farmOS/blob/b5a8324bb32f04a66984635e97fa933f8d... |
[17:51:19] | * farmBOT has joined #farmos |