Closed P0lip closed 3 years ago
@marbemac this is very likely to break masking. Shall we hide it behind a flag or something? Is displaying an old view acceptable for masking view?
this is very likely to break masking.
Hmm, what's the example(s) you're thinking of re what might break?
Well, I'm confident the oneOf/anyOf + type scenario will be almost always broken, as property paths will be mismatched. We'd need to perform the same kind of merging on the backend side of masking for the paths to match.
I kicked of another project called @stoplight/json-schema-tree that is supposed to take out of all the schema processing logic we have in JSV - do note that although the logic is more or less similar, it's been vastly refactored to payback the debt we have in JSV. We'll be able to share it between masking & jsv, and possibly JSE. This will significantly simplify JSV making contributions much easier, in particular when it comes to plain UI changes.
@stoplightio/void-crew anyone? it's ready.
@stoplightio/void-crew anyone? it's ready.
What do you mean by "ready" exactly? Is it still going to break masking?
Yeah, it might break it at times but what Marc said. It's a rare scenario. Currently we don't display anything in such case so masking doesn't really work anyway.
:tada: This PR is included in version 3.0.0-beta.37 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This PR is included in version 3.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Requires https://github.com/stoplightio/json-schema-viewer/pull/86
Closes_ https://github.com/stoplightio/platform-internal/issues/4382