You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2016/03/18 08:27:33 UTC

[jira] [Commented] (ISIS-1315) Can't generate swagger specs, where actions are contributed.

    [ https://issues.apache.org/jira/browse/ISIS-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15201104#comment-15201104 ] 

Dan Haywood commented on ISIS-1315:
-----------------------------------

To test, added:

{code}
@DomainService(nature = NatureOfService.VIEW_CONTRIBUTIONS_ONLY)
public class SimpleObjectContrib  {

    @Action(semantics = SemanticsOf.SAFE)
    @ActionLayout(
            contributed = Contributed.AS_BOTH
    )
    public List<SimpleObject> all(SimpleObject object) {
        return simpleObjects.listAll();
    }

    @Action(semantics = SemanticsOf.SAFE)
    @ActionLayout(
            contributed = Contributed.AS_ASSOCIATION
    )
    public SimpleObject other(SimpleObject object) {
        return object;
    }

    @Inject
    SimpleObjects simpleObjects;

}
{code}

for the simpleapp.

> Can't generate swagger specs, where actions are contributed.
> ------------------------------------------------------------
>
>                 Key: ISIS-1315
>                 URL: https://issues.apache.org/jira/browse/ISIS-1315
>             Project: Isis
>          Issue Type: Bug
>    Affects Versions: 1.11.1
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>             Fix For: 1.12.0
>
>
> as per http://isis.markmail.org/thread/gn3ijffsxhnslphn
> The issue is that the metamodel cannot be properly created without a session.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)