Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does ace JSON editor support auto-complete based on JSON schema? #3885

Closed
arjunballa opened this issue Jan 30, 2019 · 12 comments
Closed

Does ace JSON editor support auto-complete based on JSON schema? #3885

arjunballa opened this issue Jan 30, 2019 · 12 comments

Comments

@arjunballa
Copy link

Can I feed a json shema to ace editor and have it support auto-complete suggestion based on schema?

@arjunballa
Copy link
Author

Here is https://github.com/mkosieradzki/ace the basic version. I am making changes to support all different cases. Once I am done I will request for pull.

@LouizFC
Copy link

LouizFC commented Jun 3, 2019

@arjunballa any progress on this? maybe I will need to implementing this feature, so maybe I can help you with this.

@arjunballa
Copy link
Author

@LouizFC I made lot of progress. The only feature pending is inline validations. I handled some inline validation cases but I did not handle compound validations. I am reviewing https://ajv.js.org/ framework to see if I can integrate it and show errors inline.

@arjunballa
Copy link
Author

arjunballa commented Jun 7, 2019

I need to get permission from my company to commit. I can commit what I have over the weekend if I get permission and request a pull.

@KeithClarke
Copy link

Hi @arjunballa, Did you create the pull request?

@Alren-huang
Copy link

hello, any progress on this?

@ruicaramalho
Copy link

Hi, was this ever completed?

@ankit--sethi
Copy link

@arjunballa this would be great to have if you can open source this!

@samtes
Copy link

samtes commented May 28, 2021

@arjunballa any updates on this?

@StephanSchuster
Copy link

I would also appreciate this feature. A short update on the status would be great.

@ankit--sethi
Copy link

ankit--sethi commented Sep 17, 2022

I ended up replacing ace with monaco-editor for this feature 😞

@whazor
Copy link
Contributor

whazor commented Jul 29, 2024

Ace linters supports auto-complete and error checking based on a JSON schema.

After setting up the ace-linters JsonService, you can set the service.setGlobalOptions() that allows you to set a custom schema:

    schemas?: {
        uri: string,
        fileMatch?: string[],
        schema?: string,
    }[],

Source: https://github.com/mkslanc/ace-linters/blob/v1.2.3/packages/ace-linters/src/types/language-service.ts#L89-L93

We don't see JSON schema's going to be directly integrated with ACE.

More information at: https://github.com/mkslanc/ace-linters/wiki/Configuring-Ace-linters-with-JSON-language-service

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

No branches or pull requests

10 participants