Forum Discussion

Stoplight's avatar
Stoplight
Community Manager
7 months ago

Nested Masks don't seem to work

Originally posted by user MarcoDiSarno to the Stoplight Community on 03/07/2024 at 04:40 ET.

I have the following use case for masking:

Model A is referencing model B. (Garage.cars: array[Car] in the example)

Then, a mask on the model A hides some fields and also needs to reference a mask on model B, since that also has some fields to mask. (GaragePublic.cars: array[CarPublic])

Stoplight lets me do that and I thought, "man, nice!" but when publishing the API, all these "nested masks" don't compile.

Error: "Invalid JSON pointer: stoplight://resources/overrides/..."

Plus, when I export the API with bundled references, it also just shows the "stoplight://resources/overrides/..." refs, which are useless outside of stoplight.

The mock server also doesn't work for that project, I suspect for the same reason.

Interestingly enough, it seems to work fine in the editor, just outside it doesn't.

No RepliesBe the first to reply