Skip to content

[bug] Project info missing when DBML->JSON->DBML  #285

Open

Description

@Airkro

I make a prettier-plugin for DBML: https://github.com/nice-move/prettier-plugin-dbml

But I find out that project info will be missing when converting DBML to * and * to DBML.

const { exporter } = require('@dbml/core');

const string = `
Project project_name {
  database_type: 'PostgreSQL'
  Note: 'Description of the project'
}
`

exporter.export(string, 'dbml') // -> ''

Activity

  1. changed the title [-][bug] Project info missing when `DBML->*->DBML` [/-] [+][bug] Project info missing when `DBML->JSON->DBML` [/+] on Apr 17, 2025
  2. self-assigned this
    on Nov 6, 2025
  3. removed their assignment
    on Nov 15, 2025
  4. mateuscmtropical commented on Nov 11, 2026

    @mateuscmtropical
    Contributor

    Hi, I'd like to work on this one.

  5. mateuscmtropical commented on Nov 11, 2026

    @mateuscmtropical
    Contributor

    Hi, I've opened a PR for this: #1034

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions