SAP / cloud-mta-build-tool

Multi-Target Application (MTA) build tool for Cloud Applications https://sap.github.io/cloud-mta-build-tool
Apache License 2.0
136 stars 56 forks source link

mbt validation error for mta dynamic parameters and parameters #1100

Open andre68723 opened 8 months ago

andre68723 commented 8 months ago

Do you want to request a feature or report a bug?

when using the provides section together with parameters/visibility the mbt will stop working

Please provide the following info:

Further reference/doc: https://github.com/SAP-samples/cf-mta-examples/pull/78/files

Steps to Reproduce:

git clone https://github.com/vkalapov/cf-mta-examples.git
cd cf-mta-examples/
git checkout add-example-for-dynamic-cross-mta-configs
cd dynamic-parameters/dynamic-parameters-for-cross-mta-configurations/deploy-cross-mta-configuration-provider
cp mtad.yaml mta.yaml
mbt mtad-gen
[2023-11-16 14:37:10]  INFO generating the MTAD file...
[2023-11-16 14:37:10] ERROR could not generate metadata: the "/Users/d031183/Projects/cf-mta-examples/dynamic-parameters/dynamic-parameters-for-cross-mta-configurations/deploy-cross-mta-configuration-provider/mta.yaml" file is not a valid MTA descriptor: yaml: unmarshal errors:
  line 15: field parameters not found in type mta.Provides

PS: there was a older bug with same prob which was closed, but it's obviously not resolved https://github.com/SAP/cloud-mta-build-tool/issues/870