Skip to content

fix moon_config#144

Merged
myfreess merged 4 commits into
masterfrom
fix-moon-config
Jun 18, 2026
Merged

fix moon_config#144
myfreess merged 4 commits into
masterfrom
fix-moon-config

Conversation

@myfreess

Copy link
Copy Markdown
Collaborator

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e0b9b11aff

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread moon_config/api.mbt Outdated
Allow parse_moon_mod post-processing to keep the documented module metadata fields readme, repository, license, keywords, and description when they are written as top-level moon.mod assignments instead of only through options(...).

Normalize preferred_target to the legacy JSON preferred-target key and accept the documented compatibility array form for supported_targets, matching MoonBit module configuration docs.

Add a regression test covering documented top-level moon.mod fields so these valid configurations no longer produce unexpected-key diagnostics.
Move moon config validation into dedicated validate_mbt APIs and keep post-processing focused on AST conversion.

The public parse_moon_* entry points now return parser diagnostics only and leave schema validation to explicit validate_moon_* calls. Tests cover both explicit validation diagnostics and unchecked parse/post-process behavior.
@myfreess myfreess merged commit 0da2ddd into master Jun 18, 2026
2 checks passed
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.

1 participant