Add a dedicated MediaType module - #7539
Draft
fubhy wants to merge 15 commits into
Draft
Conversation
🦋 Changeset detectedLatest commit: 1b25b4c The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
fubhy
force-pushed
the
media-type
branch
2 times, most recently
from
September 1, 2026 06:50
e6ead06 to
e43debc
Compare
tim-smart
reviewed
Sep 1, 2026
fubhy
marked this pull request as draft
September 1, 2026 20:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
effect/unstable/http/MediaTypevalue with validated construction,Inputconversion, deterministic formatting, structured suffix access, parameter matching, and common predicatesSchema.MediaType,Schema.MediaTypeFromString, canonical JSON and StringTree codecs, declaration revival, andConfig.MediaTypeHttpApiSchemacontent-type options and normalize them into parsed encoding, stream, and response-alternative metadataHttpApiSchemainput boundariesMediaType.TypeIdTesting
pnpm lint-fixpnpm test --run packages/effect/test/schema/Schema.test.ts packages/effect/test/schema/representation/builtInRevivers.test.ts packages/effect/test/Config.test.ts packages/effect/test/unstable/http/MediaType.test.ts packages/effect/test/unstable/http/Multipart.test.tspnpm test --run packages/effect/test/unstable/httpapi/HttpApiSchema.test.ts packages/effect/test/unstable/httpapi/HttpApiEndpoint.test.ts packages/effect/test/unstable/httpapi/HttpApiClient.test.ts packages/effect/test/unstable/httpapi/HttpApiBuilder.test.ts packages/effect/test/unstable/httpapi/OpenApi.test.tspnpm test --run packages/tools/openapi-generator/test/OpenApiGenerator.test.ts packages/platform/node/test/OpenApi.test.ts packages/platform/node/test/HttpApi.test.tspnpm test-types Config.tst.ts SchemaBuiltInAtomicDeclarationRevivers.tst.ts MediaType.tst.ts HttpApiSchema.tst.ts HttpApiEndpoint.tst.ts HttpApiClient.tst.tspnpm checkgit diff --checkpnpm jsdocs --checkcontinues to report the existing repository-wide baseline diagnostics; the newly added APIs are indexed without new diagnostics.