microsoftgraph / microsoft-graph-explorer-v4

React/Redux version of Graph Explorer used to learn the Microsoft Graph Api
https://developer.microsoft.com/graph/graph-explorer
MIT License
214 stars 93 forks source link

Yellow border on Adaptive cards tab #2020

Closed RabebOthmani closed 2 years ago

RabebOthmani commented 2 years ago

There is a little yellow rectangle that looks like a border? IT's just next the copy button and can be confusing to users as it might look like a button

border
gavinbarron commented 2 years ago

This one is from the Monaco editor that is used to show the JSON here. It's not finding a schema for the JSON supplied and marking a warning, see the squiggly under the opening brace, along with a corresponding mark in the gutter. image

I did some investigation and found that we can turn on the ability to load schema, but then I got a fetch failure. Might be simplest to disable validation or set the schemaRequest issue to off from the default of warning.

Codesandbox exploring validation options: https://codesandbox.io/s/simple-usage-forked-plqtsf?file=/src/App.js