anzwdev / al-code-outline

AL Code Outline for Visual Studio Code
MIT License
51 stars 13 forks source link

API Pages - Mandatory fields #528

Closed jwikman closed 7 months ago

jwikman commented 8 months ago

According to the AL Guidelines at https://alguidelines.dev/docs/bestpractices/api-page/#mandatory-fields, there are two mandatory fields for API pages. These two fields should also have special names.

I don't know if it is a good idea to always include these when using the "New AL File Wizard", but at least I would appreciate if the fields got the correct names. Enabled by a setting is perfectly fine. 🙂

jorispoppe commented 7 months ago

I use the conversion settings to get the correct names.

"alOutline.apiFieldNamesConversion": [
        {
            "searchRegExp": "^no$",
            "newValue": "number"
        },
        {
            "searchRegExp": "No$",
            "newValue": "Number"
        },
        {
            "searchRegExp": "^systemId$",
            "newValue": "id"
        },
        {
            "searchRegExp": "^systemModifiedAt$",
            "newValue": "lastModifiedDateTime"
        }
    ],
jwikman commented 7 months ago

I use the conversion settings to get the correct names.

Aaah, of course. I'll add those to our settings!

I think we'll close this then. 🤓