Skip to content

Conversation

@eddalmond1
Copy link
Collaborator

@eddalmond1 eddalmond1 commented Mar 11, 2025

Description

Adding functionality for https://github.com/stoplightio/ExampleChooserPrismProxy to the prism implementation of a sandbox. The changes here basically set up a proxy for the main Prism service, so that specific example values used in requests are parsed into arguments (example= , code= ) that Prism uses to serve specific responses based on those held in the specification.

Context

This change allows us to 'push' the prefer hints to prism via request content

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@eddalmond1 eddalmond1 changed the base branch from feature/eja-eli-98-using-prism-for-sandbox to main March 13, 2025 15:15
@acerathereinspirative-nhs-nvir
Copy link
Contributor

Are we missing the sandbox/specification/eligibility-signposting-api.json file? Running make spec complains about it.

@eddalmond1
Copy link
Collaborator Author

Are we missing the sandbox/specification/eligibility-signposting-api.json file? Running make spec complains about it.

make spec should be making that from /specification/eligibility-signposting-api.yaml, so one to debug (as it's a classic 'working on my machine' scenario!)

…ing port 9000 (which is used by our example proxy)
@eddalmond1 eddalmond1 changed the title eli-176 adding basic functionality from https://github.com/stoplighti… eli-176 adding an 'example' serving proxy which leverages Prisms 'example' and 'code' params Mar 14, 2025
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still looks good to me! 🤣

@eddalmond1 eddalmond1 merged commit 35d6d8d into main Mar 26, 2025
23 checks passed
@eddalmond1 eddalmond1 deleted the feature/eja-eli-176-extending-prism-for-sandbox branch May 21, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants