Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Styles should be case insensitive #48

Open
vivekhumnabad opened this issue May 29, 2019 · 2 comments
Open

Styles should be case insensitive #48

vivekhumnabad opened this issue May 29, 2019 · 2 comments

Comments

@vivekhumnabad
Copy link

sampleAdaptiveCard.txt

Please refer to attached text file which contains JSON I am trying out.
this is not working..complete block is not showing up
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Tell us about yourself"
},

same if I change it to -
{
"type": "TextBlock",
"size": "medium",
"weight": "bolder",
"text": "Tell us about yourself"
},

shows up the text as expected.

The same issue exists with other params as well.
For e.g -"email", "tel", "small", "default".

It should work irrespective of text case. I verified the same JSON with upper case text in https://adaptivecards.io/designer website and everything works perfectly and in react-native it misses out if we use upper case text.

@vivekhumnabad
Copy link
Author

Any Update in this issue please..

@vivekhumnabad
Copy link
Author

Screenshot 2019-06-26 at 9 37 25 pm

refer to attached screenshot ,currently verticalContentAlignement is accepting all styles will lower case..
I Tried adding CamelCase to this and it started working.

we are using the enums from the adaptive cards node.js lib
https://github.com/microsoft/AdaptiveCards/blob/master/source/nodejs/adaptivecards/src/enums.ts

and we don't want to change enums there.

Any help would be appreciated.
Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant