The `processModule` method is invoked only when a specific single model is requested directly, using the following URL:
http://localhost:8181/openapi/api/v3/mounts/1/MODEL(REVISION)
However, this method generates a POST request with an incorrect payload, resulting in a 500 error response with the following message:
"Error parsing json input: Failed to create new parse result data. Are you creating multiple resources/subresources in POST request?"
This issue is caused by writing two resources at the same time.
"/rests/data/network-topology:network-topology/topology=topology-netconf/node=36001-sim-device/yang-ext:mount": { "post": { "requestBody": { "description": "second-test-containers_module", "content": { "application/xml": { "schema": { "$ref": "#/components/schemas/second-test-containers_module" } }, "application/json": { "schema": { "$ref": "#/components/schemas/second-test-containers_module" } } } }, "responses": { "201": { "description": "Created" } } } }
"second-test-containers_module": { "required": [ "foo", "bar" ], "properties": { "foo": { "$ref": "#/components/schemas/second-test-containers_foo" }, "bar": { "$ref": "#/components/schemas/second-test-containers_bar" } }, "description": "", "title": "second-test-containers_module", "type": "object" }
So there is no need to create a schema "second-test-containers_module".
Instead, use the first container in the model in the POST reference. In this case, "second-test-containers_foo".