Hi Haibin,
When ever you are using the body in json format, the body section should be an
proper json otherwise, it will fail.
Please use the oclip schema-validate -l <ocs yaml path> and it would report any
such error.
You have missed the double quote around the some parameters. Pls use the below
one
{"context": {"globalCustomerId": "${customer-name}",
"serviceType": "${service-type}"
},"csarId": "${ns-csar-uuid}", "nsName": "${ns-csar-name}"}
Regards
Kanagaraj Manickam
Senior System Architect
P&S ONAP
Huawei Technologies India Pvt. Ltd.
Survey No. 37, Next to EPIP Area, Kundalahalli, Whitefield
Bengaluru-560066, Karnataka
Tel: + 91-80-49160700 ext 72410 Mob: 9945602938
[Company_logo]
________________________________
This e-mail and its attachments contain confidential information from HUAWEI,
which
is intended only for the person or entity whose address is listed above. Any
use of the
information contained herein in any way (including, but not limited to, total
or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify
the sender by
phone or email immediately and delete it!
From: Huang, Haibin [mailto:[email protected]]
Sent: 27 August 2019 13:31
To: Kanagaraj Manickam <[email protected]>
Cc: Yan Yang <[email protected]>; [email protected];
[email protected]
Subject: Http request body does not have valid json
Hi Kanagaraj,
I have encounter a problem.
If I used below body, I got "0x3008::Http request body does not have valid json
0x3008, null" error.
body: '{"context": {"globalCustomerId": ${customer-name}, "serviceType":
${service-type}},
"csarId": "${ns-csar-uuid}", "nsName": "${ns-csar-name}"}'
https://git.onap.org/cli/tree/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml
But, I used below body without any error.
body: '{
"userDefinedData": {"${user-key}": "${user-value}"}
}'
https://git.onap.org/cli/tree/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-create-ns-schema.yaml
I have tried many times without getting root cause. Can you help to figure out
it.
Thank you very much!
Thank you!
Best Regards
-------------------------------------------------------------------------------------------------------------------------------
Huang.haibin
11628530
86+18106533356
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18702): https://lists.onap.org/g/onap-discuss/message/18702
Mute This Topic: https://lists.onap.org/mt/33043751/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-